[PATCH] D39497: [scudo] Fix standlone build -lrt requirement

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 09:50:05 PDT 2017


cryptoad updated this revision to Diff 121145.
cryptoad added a comment.

Same idea, but with just line reordering.


https://reviews.llvm.org/D39497

Files:
  test/scudo/lit.cfg


Index: test/scudo/lit.cfg
===================================================================
--- test/scudo/lit.cfg
+++ test/scudo/lit.cfg
@@ -28,12 +28,13 @@
            "-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) + " "                   
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39497.121145.patch
Type: text/x-patch
Size: 639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171101/814c9a7d/attachment.bin>


More information about the llvm-commits mailing list