diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-08-29 17:51:01 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-08-29 17:51:01 +0000 |
| commit | e0095a7644863a8d37ebc2306549cb4e92ecd3aa (patch) | |
| tree | 83f399c6616b05976fe3f93c22581f6f39e58b25 /utils/libcxx/test | |
| parent | 8ad8b454b4916f3cbee9af77a1095ffbf2bc0896 (diff) | |
Notes
Diffstat (limited to 'utils/libcxx/test')
| -rw-r--r-- | utils/libcxx/test/target_info.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/libcxx/test/target_info.py b/utils/libcxx/test/target_info.py index 0e93e11448bfa..de2232ff41883 100644 --- a/utils/libcxx/test/target_info.py +++ b/utils/libcxx/test/target_info.py @@ -222,12 +222,17 @@ class LinuxLocalTI(DefaultTargetInfo): self.full_config.config.available_features) llvm_unwinder = self.full_config.get_lit_bool('llvm_unwinder', False) shared_libcxx = self.full_config.get_lit_bool('enable_shared', True) + # FIXME: Remove the need to link -lrt in all the tests, and instead + # limit it only to the filesystem tests. This ensures we don't cause an + # implicit dependency on librt except when filesystem is needed. + enable_fs = self.full_config.get_lit_bool('enable_filesystem', + default=False) flags += ['-lm'] if not llvm_unwinder: flags += ['-lgcc_s', '-lgcc'] if enable_threads: flags += ['-lpthread'] - if not shared_libcxx: + if not shared_libcxx or enable_fs: flags += ['-lrt'] flags += ['-lc'] if llvm_unwinder: |
