From 411e5e9e6d7b68dfae4a93ef90c042d92b7322c1 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Wed, 24 Sep 2014 17:39:45 +0200 Subject: Prevent OS X from picking a wrong version of clang from the env Until now we relied on the PATH to pick the right clang version on OS X which turned out to be a source of issues on build nodes that have a lot of old cruft lying around which was picked up by gyp. Set make_clang_dir so that gyp uses the configured clang version from Qt and remove the env manipulation from our gyp script. Change-Id: I4ac679ea56fa874eecaa578aad77b462445c0caa Reviewed-by: Michael Bruning --- tools/buildscripts/gyp_qtwebengine | 7 ------- 1 file changed, 7 deletions(-) (limited to 'tools/buildscripts/gyp_qtwebengine') diff --git a/tools/buildscripts/gyp_qtwebengine b/tools/buildscripts/gyp_qtwebengine index eb44477e7..6f2bbc936 100755 --- a/tools/buildscripts/gyp_qtwebengine +++ b/tools/buildscripts/gyp_qtwebengine @@ -9,7 +9,6 @@ print 'using python: ' + sys.executable + ' version: ' + sys.version if sys.platform == "darwin": print 'xcode version: ' + subprocess.check_output(['xcodebuild', '-version']).replace('\n', ' ') - print 'clang++ version: ' + subprocess.check_output(['clang++', '--version']).replace('\n', ' ') qtwebengine_root = os.path.normcase(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))) import qtwebengine_utils as utils @@ -87,12 +86,6 @@ if __name__ == '__main__': if 'qt_cross_compile=1' in sys.argv: os.environ['GYP_CROSSCOMPILE'] = '1' - # On Mac we want to override CXX and CC that is provided with - # the Chromium GYP environment. - if sys.platform.startswith('darwin') and not 'GYP_CROSSCOMPILE' in os.environ: - os.environ['CXX'] = 'clang++' - os.environ['CC'] = 'clang' - gyp_helper.apply_chromium_gyp_env() # This could give false positives since it doesn't actually do real option -- cgit v1.2.3