mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
use os_ident for cmake toolchain filename instead of os.target()
This commit is contained in:
parent
07c6f46c03
commit
a6c53a2c6d
@ -288,9 +288,9 @@ local function cmake_build(dep_folder, is_32, extra_cmd_defs, c_flags_init, cxx_
|
|||||||
if #cxxflags_init_str > 0 then
|
if #cxxflags_init_str > 0 then
|
||||||
toolchain_file_content = toolchain_file_content .. 'set(CMAKE_CXX_FLAGS_INIT ' .. cxxflags_init_str .. ' )\n'
|
toolchain_file_content = toolchain_file_content .. 'set(CMAKE_CXX_FLAGS_INIT ' .. cxxflags_init_str .. ' )\n'
|
||||||
end
|
end
|
||||||
|
|
||||||
if #toolchain_file_content > 0 then
|
if #toolchain_file_content > 0 then
|
||||||
local toolchain_file = path.join(dep_base, 'toolchain_' .. tostring(is_32) .. '_' .. _ACTION .. '_' .. os.target() .. '.precmt')
|
local toolchain_file = path.join(dep_base, 'toolchain_' .. tostring(is_32) .. '_' .. _ACTION .. '_' .. os_iden .. '.precmt')
|
||||||
if not io.writefile(toolchain_file, toolchain_file_content) then
|
if not io.writefile(toolchain_file, toolchain_file_content) then
|
||||||
error("failed to write cmake toolchain")
|
error("failed to write cmake toolchain")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user