aboutsummaryrefslogtreecommitdiff
path: root/etc/environments/default-mingw.bat
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-19 10:31:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-19 10:37:28 +0200
commita6d27c3bca9e9ed591ae4a6e90666a027dcef2b0 (patch)
tree5380caf7773f7f827cdcabb3d93fb0a1d1894bf6 /etc/environments/default-mingw.bat
parente85f2d4e36ec56229b82f617fb8b9717927347ca (diff)
Pass compiler mode as part of config.{c,cxx} in environment scripts
Diffstat (limited to 'etc/environments/default-mingw.bat')
-rw-r--r--etc/environments/default-mingw.bat6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/environments/default-mingw.bat b/etc/environments/default-mingw.bat
index 1d5427b..26d994c 100644
--- a/etc/environments/default-mingw.bat
+++ b/etc/environments/default-mingw.bat
@@ -26,17 +26,17 @@ rem Based on target determine what we are building.
rem
set "MODE="
if "_%1_" == "_x86_64-w64-mingw32_" (
- rem set "MODE=config.cc.coptions+=-m64"
+ rem set "MODE=-m64"
) else (
if "_%1_" == "_i686-w64-mingw32_" (
- set "MODE=config.cc.coptions+=-m32"
+ set "MODE=-m32"
) else (
echo error: unknown target %1
goto error
)
)
-%2 %3 %4 %5 %6 %7 %8 %9 cc config.c=%C% config.cxx=%CXX% %MODE%
+%2 %3 %4 %5 %6 %7 %8 %9 cc "config.c=%C% %MODE%" "config.cxx=%CXX% %MODE%"
if errorlevel 1 goto error
goto end