[scudo] Fix standlone build -lrt requirement
authorKostya Kortchinsky <kostyak@google.com>
Wed, 1 Nov 2017 17:00:26 +0000 (17:00 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Wed, 1 Nov 2017 17:00:26 +0000 (17:00 +0000)
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

compiler-rt/test/scudo/lit.cfg

index 0113bf0..2f6469d 100644 (file)
@@ -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) + " "