Disable clang on 32bit systems by default
Fixes #51 Change-Id: I7ae81055b30ce11cd12080f7d8ee9e6f899d07cd
This commit is contained in:
parent
e9bf2d7422
commit
810f5b3ab5
|
@ -40,6 +40,7 @@ src_dir = os.path.join(checkout_dir, 'packager')
|
||||||
# pylint: disable=g-import-not-at-top,g-bad-import-order
|
# pylint: disable=g-import-not-at-top,g-bad-import-order
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(src_dir, 'build'))
|
sys.path.insert(0, os.path.join(src_dir, 'build'))
|
||||||
|
import detect_host_arch
|
||||||
import gyp_helper
|
import gyp_helper
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(src_dir, 'tools', 'gyp', 'pylib'))
|
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_binary': 0,
|
||||||
'linux_use_gold_flags': 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
|
gyp_defines = (os.environ['GYP_DEFINES'] if os.environ.get('GYP_DEFINES') else
|
||||||
'')
|
'')
|
||||||
for key in _DEFAULT_DEFINES:
|
for key in _DEFAULT_DEFINES:
|
||||||
|
|
Loading…
Reference in New Issue