diff --git a/scons/llvm.py b/scons/llvm.py index a84ad51d97a..7ebcaf1c58c 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -123,7 +123,7 @@ def generate(env): if env['platform'] == 'windows' and env['crosscompile']: # LLVM 5.0 requires MinGW w/ pthreads due to use of std::thread and friends. assert env['gcc'] - env['CXX'] = env['CXX'] + '-posix' + env.AppendUnique(CXXFLAGS = ['-posix']) elif llvm_version >= distutils.version.LooseVersion('4.0'): env.Prepend(LIBS = [ 'LLVMX86Disassembler', 'LLVMX86AsmParser',