use os_ident for cmake toolchain filename instead of os.target()

This commit is contained in:
otavepto 2024-05-28 22:20:46 +03:00
parent 07c6f46c03
commit a6c53a2c6d

View File

@ -290,7 +290,7 @@ local function cmake_build(dep_folder, is_32, extra_cmd_defs, c_flags_init, cxx_
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