From 810f5b3ab5cf1cbb5494ed9ea7c9eed950dba933 Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Mon, 25 Jan 2016 13:39:02 -0800 Subject: [PATCH] Disable clang on 32bit systems by default Fixes #51 Change-Id: I7ae81055b30ce11cd12080f7d8ee9e6f899d07cd --- gyp_packager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gyp_packager.py b/gyp_packager.py index 1a56d0e97b..52009be284 100755 --- a/gyp_packager.py +++ b/gyp_packager.py @@ -40,6 +40,7 @@ src_dir = os.path.join(checkout_dir, 'packager') # pylint: disable=g-import-not-at-top,g-bad-import-order sys.path.insert(0, os.path.join(src_dir, 'build')) +import detect_host_arch import gyp_helper sys.path.insert(0, os.path.join(src_dir, 'tools', 'gyp', 'pylib')) @@ -67,6 +68,10 @@ if __name__ == '__main__': 'linux_use_gold_binary': 0, 'linux_use_gold_flags': 0} + # Disable clang on 32 bit systems by default, which is not supported. + if detect_host_arch.HostArch() == 'ia32': + _DEFAULT_DEFINES['clang'] = 0 + gyp_defines = (os.environ['GYP_DEFINES'] if os.environ.get('GYP_DEFINES') else '') for key in _DEFAULT_DEFINES: