Revert "llvm: fix test"

This reverts commit e1f36c9320.

Closes #12525.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
master
ilovezfs 2017-04-17 04:33:09 -07:00
parent 832b70016f
commit 9782146ea9
1 changed files with 3 additions and 3 deletions

View File

@ -295,8 +295,8 @@ class Llvm < Formula
}
EOS
system "#{bin}/clang", "-L#{lib}", "-Wl,-rpath,#{lib}", "-fopenmp",
"-nobuiltininc", "-I#{lib}/clang/#{version}/include",
system "#{bin}/clang", "-L#{lib}", "-fopenmp", "-nobuiltininc",
"-I#{lib}/clang/#{version}/include",
"omptest.c", "-o", "omptest"
testresult = shell_output("./omptest")
@ -375,7 +375,7 @@ class Llvm < Formula
"-I#{MacOS.sdk_path}/usr/include",
"-L#{lib}",
"-Wl,-rpath,#{lib}", "test.cpp", "-o", "test"
assert_includes MachO::Tools.dylibs("test"), "@rpath/libc++.1.dylib"
assert_includes MachO::Tools.dylibs("test"), "#{opt_lib}/libc++.1.dylib"
assert_equal "Hello World!", shell_output("./test").chomp
end
end