mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-26 02:14:15 +08:00
force write the cmake toolcahin file everytime just in case the content was changed during each build
This commit is contained in:
parent
d724169f3d
commit
5f96b4907c
@ -203,14 +203,12 @@ local function cmake_build(dep_folder, is_32, extra_defs)
|
|||||||
if string.match(_ACTION, 'gmake.*') then
|
if string.match(_ACTION, 'gmake.*') then
|
||||||
if is_32 then
|
if is_32 then
|
||||||
local toolchain_file = path.join(deps_dir, 'toolchain_32.cmake')
|
local toolchain_file = path.join(deps_dir, 'toolchain_32.cmake')
|
||||||
if not os.isfile(toolchain_file) then
|
if not io.writefile(toolchain_file, [[
|
||||||
if not io.writefile(toolchain_file, [[
|
set(CMAKE_C_FLAGS_INIT "-m32")
|
||||||
set(CMAKE_C_FLAGS_INIT "-m32")
|
set(CMAKE_CXX_FLAGS_INIT "-m32")
|
||||||
set(CMAKE_CXX_FLAGS_INIT "-m32")
|
]]) then
|
||||||
]]) then
|
error("failed to create 32-bit cmake toolchain (gmake)")
|
||||||
error("failed to create 32-bit cmake toolchain (gmake)")
|
return
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
cmd_gen = cmd_gen .. ' -DCMAKE_TOOLCHAIN_FILE="' .. toolchain_file .. '"'
|
cmd_gen = cmd_gen .. ' -DCMAKE_TOOLCHAIN_FILE="' .. toolchain_file .. '"'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user