From efa270963e50cc5231f51cc7f3d7e010739fb34f Mon Sep 17 00:00:00 2001 From: Rintaro Kuroiwa Date: Thu, 16 Jan 2014 15:34:19 -0800 Subject: [PATCH] Remove disable gold flag and enable clang in build.sh Change-Id: I497234ed6285785e5b8905d03c44adb9b9eda4ab --- build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 09884571e3..9f319e9199 100755 --- a/build.sh +++ b/build.sh @@ -34,7 +34,9 @@ function setup_packager_env() { fi fi - export GYP_DEFINES="linux_use_gold_flags=0 use_openssl=1" + # Note: You'd have to run ./tools/clang/scripts/update.sh before you run GYP + # with clang=1 flag. + export GYP_DEFINES="clang=1 use_openssl=1" export BUILDTYPE="${type}" export BUILD_OUT="." @@ -44,4 +46,7 @@ function setup_packager_env() { export GYP_GENERATORS="ninja" setup_packager_env $@ + +# Note: If this fails due to some error about "not having clang", read the note +# above. ninja -C "out/${BUILDTYPE}" $2