summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2015-04-01 17:07:50 +0000
committerAlexander Potapenko <glider@google.com>2015-04-01 17:07:50 +0000
commit9be2c6544b75dad3c50caf4c33c58ebfbfe6cd24 (patch)
tree611472b2821ec284a7ac7f4244739c6ee6a8c167
parent2dc063fa16e95da1d11e8d969b671a2f3fd0cfc3 (diff)
downloadbcm5719-llvm-9be2c6544b75dad3c50caf4c33c58ebfbfe6cd24.tar.gz
bcm5719-llvm-9be2c6544b75dad3c50caf4c33c58ebfbfe6cd24.zip
[ASan] Speculative fix for TestCases/Posix/interception-in-shared-lib-test.cc and TestCases/suppressions-library.cc on FreeBSD.
r233802 has moved the tests above to Posix/ and introduced %ld_flags_rpath_so and %ld_flags_rpath_exe, which haven't been defined for FreeBSD. We expect the flags to be the same on Linux and FreeBSD. If there's another reason for the tests to fail on FreeBSD, they'll need to be disabled. llvm-svn: 233822
-rw-r--r--compiler-rt/test/asan/lit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/lit.cfg b/compiler-rt/test/asan/lit.cfg
index b303cee953a..05a57157602 100644
--- a/compiler-rt/test/asan/lit.cfg
+++ b/compiler-rt/test/asan/lit.cfg
@@ -138,7 +138,7 @@ config.available_features.add("asan-" + config.bits + "-bits")
if config.host_os == 'Darwin':
config.substitutions.append( ("%ld_flags_rpath_exe", '-Wl,-rpath,@executable_path/ %dynamiclib') )
config.substitutions.append( ("%ld_flags_rpath_so", '-install_name @rpath/`basename %dynamiclib`') )
-elif config.host_os == 'Linux':
+elif config.host_os in ['Linux', 'FreeBSD']:
config.substitutions.append( ("%ld_flags_rpath_exe", "-Wl,-rpath,\$ORIGIN -L%T -l%xdynamiclib_namespec") )
config.substitutions.append( ("%ld_flags_rpath_so", '') )
OpenPOWER on IntegriCloud