remove -mwin32, it doesn't seem to do anything

This commit is contained in:
otavepto 2024-05-29 21:48:49 +03:00
parent d99eed2541
commit e00996447e
2 changed files with 1 additions and 15 deletions

View File

@ -212,13 +212,6 @@ local function cmake_build(dep_folder, is_32, extra_cmd_defs, c_flags_init, cxx_
table.insert(all_cflags_init, '-m32')
table.insert(all_cxxflags_init, '-m32')
end
if os.target() == 'windows' then -- MinGW on Windows
-- from docs: "specifies that the typical Microsoft Windows predefined macros are to be set in the pre-processor,
-- but does not influence the choice of runtime library/startup code"
-- optional really
table.insert(all_cflags_init, '-mwin32')
table.insert(all_cxxflags_init, '-mwin32')
end
elseif string.match(_ACTION, 'vs.+') then
-- these 2 are needed because mbedtls doesn't care about 'CMAKE_MSVC_RUNTIME_LIBRARY' for some reason
table.insert(all_cflags_init, '-MT')

View File

@ -432,16 +432,9 @@ filter {} -- reset the filter and remove all active keywords
-- MinGw on Windows
-- common compiler/linker options: source: https://gcc.gnu.org/onlinedocs/gcc/Cygwin-and-MinGW-Options.html
---------
filter { "system:windows", "action:gmake*", }
-- MinGw on Windows common compiler/linker options
-- source: https://gcc.gnu.org/onlinedocs/gcc/Cygwin-and-MinGW-Options.html
buildoptions {
-- from docs: "specifies that the typical Microsoft Windows predefined macros are to be set in the pre-processor,
-- but does not influence the choice of runtime library/startup code"
-- optional really
'-mwin32',
}
-- MinGw on Windows common defines
-- MinGw on Windows doesn't have a definition for '_S_IFDIR' which is microsoft specific: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/stat-functions
-- this is used in 'base.cpp' -> if ( buffer.st_mode & _S_IFDIR)