13
0

Change waf/darwin default compiler to prefer gcc (if available)

This commit is contained in:
Robin Gareus 2020-01-21 02:23:51 +01:00
parent 19603d075f
commit 1d2cfd6f2d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -11,6 +11,13 @@ from waflib.Tools import winres
from waflib.Build import Context
from waflib.Build import BuildContext
# Fixup OSX 10.5/10.6 builds
# prefer gcc, g++ 4.x over ancient clang-1.5
from waflib.Tools.compiler_c import c_compiler
from waflib.Tools.compiler_cxx import cxx_compiler
c_compiler['darwin'] = ['gcc', 'clang' ]
cxx_compiler['darwin'] = ['g++', 'clang++' ]
class i18n(BuildContext):
cmd = 'i18n'
fun = 'i18n'