aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-03-24 18:23:04 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2017-04-06 22:47:15 +0100
commitcbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66 (patch)
treed979d3a8289f1f5c55998591c5e9232f7a51f16d /mesonbuild/environment.py
parentc80ca384b22547147ad1515cc6527dacc4c72fe0 (diff)
downloadmeson-cbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66.zip
meson-cbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66.tar.gz
meson-cbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66.tar.bz2
Don't use -fPIC on Cygwin, either
Identify Cygwin-targetted gcc as sui generis (don't use -fPIC, but don't link with standard Windows libraries, either) Update tests appropriately
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index cb62506..7ae53fc 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -368,7 +368,8 @@ class Environment:
return GCC_OSX
elif '__MINGW32__' in defines or '__MINGW64__' in defines:
return GCC_MINGW
- # We ignore Cygwin for now, and treat it as a standard GCC
+ elif '__CYGWIN__' in defines:
+ return GCC_CYGWIN
return GCC_STANDARD
def _get_compilers(self, lang, evar, want_cross):