Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm: fix test #10808

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Formula/llvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def message
class Llvm < Formula
desc "Next-gen compiler infrastructure"
homepage "http://llvm.org/"
revision 1

stable do
url "http://llvm.org/releases/3.9.1/llvm-3.9.1.src.tar.xz"
Expand Down Expand Up @@ -301,8 +302,8 @@ def caveats
}
EOS

system "#{bin}/clang", "-L#{lib}", "-fopenmp", "-nobuiltininc",
"-I#{lib}/clang/#{version}/include",
system "#{bin}/clang", "-L#{lib}", "-Wl,-rpath,#{lib}", "-fopenmp",
"-nobuiltininc", "-I#{lib}/clang/#{version}/include",
"omptest.c", "-o", "omptest"
testresult = shell_output("./omptest")

Expand Down Expand Up @@ -381,7 +382,7 @@ def caveats
"-I#{MacOS.sdk_path}/usr/include",
"-L#{lib}",
"-Wl,-rpath,#{lib}", "test.cpp", "-o", "test"
assert_includes MachO::Tools.dylibs("test"), "#{opt_lib}/libc++.1.dylib"
assert_includes MachO::Tools.dylibs("test"), "@rpath/libc++.1.dylib"
assert_equal "Hello World!", shell_output("./test").chomp
end
end
Expand Down