build: Disable precompiled headers on OS X with clang < 6.1.0
Change-Id: I4e88f35d6e649eb5b2eefef868ac29576e293877 Refs: #2804
This commit is contained in:
1 parent
1c85221192
commit
483d652d95
1 file changed
+5
@@ -67,6 +67,11 @@ def options(opt):
|
||||
|
||||
def configure(conf):
|
||||
if (conf.options.with_pch and conf.env['COMPILER_CXX'] in PCH_COMPILER_OPTIONS.keys()):
|
||||
if Utils.unversioned_sys_platform() == "darwin" and conf.env['CXX_NAME'] == 'clang':
|
||||
version = tuple(int(i) for i in conf.env['CC_VERSION'])
|
||||
if version < (6, 1, 0):
|
||||
# Issue #2804
|
||||
return
|
||||
conf.env.WITH_PCH = True
|
||||
flags = PCH_COMPILER_OPTIONS[conf.env['COMPILER_CXX']]
|
||||
conf.env.CXXPCH_F = flags[0]
|
||||
|
||||
Reference in new issue
Block a user