Fix building android gn
authorjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 4 Jun 2014 15:21:26 +0000 (15:21 +0000)
committerjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 4 Jun 2014 15:21:26 +0000 (15:21 +0000)
BUG=none
TBR=machenbach@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/313923002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21678 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

BUILD.gn

index 2caf0c0..2fe4579 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -976,8 +976,14 @@ executable("mksnapshot") {
     ":v8_nosnapshot",
   ]
 
+  libs = []
+
   if (v8_compress_startup_data == "bz2") {
-    libs = [ "bz2" ]
+    libs += [ "bz2" ]
+  }
+
+  if (is_android && current_toolchain != host_toolchain) {
+    libs += [ "log" ]
   }
 }
 
@@ -1004,10 +1010,6 @@ component("v8") {
     ]
   }
 
-  if (is_android && current_toolchain != host_toolchain) {
-    libs = [ "log" ]
-  }
-
   configs -= [ "//build/config/compiler:chromium_code" ]
   configs += [ "//build/config/compiler:no_chromium_code" ]
   configs += [ ":internal_config", ":features", ":toolchain" ]