diff options
Diffstat (limited to 'openmp/runtime/test/lit.cfg')
-rw-r--r-- | openmp/runtime/test/lit.cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg index 22969871433..e4561ebc30b 100644 --- a/openmp/runtime/test/lit.cfg +++ b/openmp/runtime/test/lit.cfg @@ -120,7 +120,11 @@ if config.has_ompt: if config.operating_system == 'Windows': # No such environment variable on Windows. config.substitutions.append(("%preload-tool", "true ||")) + config.substitutions.append(("%no-as-needed-flag", "-Wl,--no-as-needed")) elif config.operating_system == 'Darwin': config.substitutions.append(("%preload-tool", "env DYLD_INSERT_LIBRARIES=%T/tool.so")) + # No such linker flag on Darwin. + config.substitutions.append(("%no-as-needed-flag", "")) else: config.substitutions.append(("%preload-tool", "env LD_PRELOAD=%T/tool.so")) + config.substitutions.append(("%no-as-needed-flag", "-Wl,--no-as-needed")) |