summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2017-11-01 17:00:26 +0000
committerKostya Kortchinsky <kostyak@google.com>2017-11-01 17:00:26 +0000
commit4f6767844a54e52043f3a8e237b3075b0507fd0a (patch)
tree700c4f2cdc8c7656a1af4130d7af9d5171e260c1 /test
parent60ec9d032df6ac22be15ee06e1559c73cffc22ea (diff)
[scudo] Fix standlone build -lrt requirement
Summary: The split in D39461 introduced separate C++ flags, but `cxx_flags` needs `-lrt` as well for the standalone build. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39497 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@317103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/scudo/lit.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scudo/lit.cfg b/test/scudo/lit.cfg
index 0113bf0e7..2f6469d25 100644
--- a/test/scudo/lit.cfg
+++ b/test/scudo/lit.cfg
@@ -28,12 +28,13 @@ c_flags = ([config.target_cflags] +
"-UNDEBUG",
"-ldl",
"-Wl,--gc-sections"])
-cxx_flags = (c_flags + config.cxx_mode_flags + ["-std=c++11"])
# Android doesn't want -lrt.
if not config.android:
c_flags += ["-lrt"]
+cxx_flags = (c_flags + config.cxx_mode_flags + ["-std=c++11"])
+
def build_invocation(compile_flags):
return " " + " ".join([config.compile_wrapper, config.clang] + compile_flags) + " "