diff options
| author | Kostya Kortchinsky <kostyak@google.com> | 2017-11-01 17:00:26 +0000 | 
|---|---|---|
| committer | Kostya Kortchinsky <kostyak@google.com> | 2017-11-01 17:00:26 +0000 | 
| commit | a2cdb2d5411477170bbc166bdd0b9adf521a03cf (patch) | |
| tree | 3e27cd1cc77c07308600b7502bd0372af51cba74 | |
| parent | 5ae677e102e35e4cabe393ae6185e25e49c91160 (diff) | |
| download | bcm5719-llvm-a2cdb2d5411477170bbc166bdd0b9adf521a03cf.tar.gz bcm5719-llvm-a2cdb2d5411477170bbc166bdd0b9adf521a03cf.zip  | |
[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
llvm-svn: 317103
| -rw-r--r-- | compiler-rt/test/scudo/lit.cfg | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/test/scudo/lit.cfg b/compiler-rt/test/scudo/lit.cfg index 0113bf0e7d5..2f6469d25a2 100644 --- a/compiler-rt/test/scudo/lit.cfg +++ b/compiler-rt/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) + " "                     | 

