Skip to content

Commit

Permalink
Support Windows 7+ instead of Windows 10+ (#36)
Browse files Browse the repository at this point in the history
* Move -g0 -O2 from CPPFLAGS to CFLAGS/CXXFLAGS

That's the more correct way to pass such options to the compiler

* Support Windows 7+ instead of Windows 10+
  • Loading branch information
mlocati authored Oct 28, 2024
1 parent 9ab5956 commit 49e9186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-exe/vars.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ $configureArgs = @(
# The strip command
"STRIP='$mingwHost-strip'",
# The C/C++ preprocessor flags
"CPPFLAGS='-I$cygwinInstalledPath/include -I/usr/$mingwHost/sys-root/mingw/include -g0 -O2'",
"CPPFLAGS='-I$cygwinInstalledPath/include -I/usr/$mingwHost/sys-root/mingw/include -DWINVER=0x0601 -D_WIN32_WINNT=0x0601'",
# The flags for the C compiler
"CFLAGS=''",
"CFLAGS='-g0 -O2'",
# The flags for the C++ compiler
"CXXFLAGS='-fno-threadsafe-statics'",
"CXXFLAGS='-g0 -O2 -fno-threadsafe-statics'",
# The flags for the linker
"LDFLAGS='-L$cygwinInstalledPath/lib -L/usr/$mingwHost/sys-root/mingw/lib'",
"--host=$mingwHost",
Expand Down

0 comments on commit 49e9186

Please sign in to comment.