diff options
author | Petr Hosek <phosek@chromium.org> | 2018-01-08 23:36:53 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-01-08 23:36:53 +0000 |
commit | 0f03c79b6d843d787d56e8c42b0f31f99d34cf2b (patch) | |
tree | e986dd99b3acb429237e22c63738378a8d71a322 /libcxx/utils | |
parent | ace10a20a66eca4c8a46da5751fa6b2b161fe552 (diff) | |
download | bcm5719-llvm-0f03c79b6d843d787d56e8c42b0f31f99d34cf2b.tar.gz bcm5719-llvm-0f03c79b6d843d787d56e8c42b0f31f99d34cf2b.zip |
[libcxx] Support the use of compiler-rt in lit tests
Don't link tests against libgcc when compiler-rt is being used.
Differential Revision: https://reviews.llvm.org/D40513
llvm-svn: 322044
Diffstat (limited to 'libcxx/utils')
-rw-r--r-- | libcxx/utils/libcxx/test/target_info.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/utils/libcxx/test/target_info.py b/libcxx/utils/libcxx/test/target_info.py index 670aea7ae63..0e93e11448b 100644 --- a/libcxx/utils/libcxx/test/target_info.py +++ b/libcxx/utils/libcxx/test/target_info.py @@ -234,7 +234,9 @@ class LinuxLocalTI(DefaultTargetInfo): flags += ['-lunwind', '-ldl'] else: flags += ['-lgcc_s'] - flags += ['-lgcc'] + compiler_rt = self.full_config.get_lit_bool('compiler_rt', False) + if not compiler_rt: + flags += ['-lgcc'] use_libatomic = self.full_config.get_lit_bool('use_libatomic', False) if use_libatomic: flags += ['-latomic'] |