Mesa (staging/19.1): scons: For MinGW use -posix flag.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Sep 30 08:43:07 UTC 2019


Module: Mesa
Branch: staging/19.1
Commit: f4298941d3ea5fd5e46dc105cc5dd239b2a9c2ee
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4298941d3ea5fd5e46dc105cc5dd239b2a9c2ee

Author: Michel Zou <xantares09 at hotmail.com>
Date:   Fri May 24 12:32:01 2019 +0200

scons: For MinGW use -posix flag.

Signed-off-by: Jose Fonseca <jfonseca at vmware.com>
(cherry picked from commit 88eb2a1f7e6277c7f10adfc95ebeaf3d2f73e862)

---

 scons/llvm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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',




More information about the mesa-commit mailing list