From: Michel Zou Date: Fri, 24 May 2019 10:32:01 +0000 (+0200) Subject: scons: For MinGW use -posix flag. X-Git-Tag: upstream/19.3.0~6104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88eb2a1f7e6277c7f10adfc95ebeaf3d2f73e862;p=platform%2Fupstream%2Fmesa.git scons: For MinGW use -posix flag. Signed-off-by: Jose Fonseca --- diff --git a/scons/llvm.py b/scons/llvm.py index a84ad51..7ebcaf1 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',