[PATCH] D56704: gn build: Switch to using current_os in lib/Support/BUILD.gn.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 14 21:09:47 PST 2019


pcc created this revision.
pcc added reviewers: thakis, phosek.
Herald added subscribers: kristina, hiraditya, srhines.

Repository:
  rL LLVM

https://reviews.llvm.org/D56704

Files:
  llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn


Index: llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
+++ llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
@@ -155,7 +155,7 @@
 
   libs = []
 
-  if (host_os == "linux") {
+  if (current_os == "linux" || current_os == "android") {
     libs += [ "dl" ]
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56704.181716.patch
Type: text/x-patch
Size: 388 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190115/9d5dd479/attachment.bin>


More information about the llvm-commits mailing list