Merge topic 'ninja-gcc-windows'
cf8ce7a3
RC: Do not override MinGW Makefiles generator preferenceca658a45
Ninja: Use forward slashes for linking with any GCC on Windows (#15439)
This commit is contained in:
commit
cca3bbde98
|
@ -138,7 +138,7 @@ macro(__windows_compiler_gnu lang)
|
|||
endforeach()
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_RC_COMPILER_INIT)
|
||||
if(NOT CMAKE_RC_COMPILER_INIT AND NOT CMAKE_GENERATOR_RC)
|
||||
set(CMAKE_RC_COMPILER_INIT windres)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -565,7 +565,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
|||
vars["TARGET_PDB"] = base + suffix + dbg_suffix;
|
||||
}
|
||||
|
||||
if (mf->IsOn("CMAKE_COMPILER_IS_MINGW"))
|
||||
if (this->GetGlobalGenerator()->IsGCCOnWindows())
|
||||
{
|
||||
const std::string objPath = GetTarget()->GetSupportDirectory();
|
||||
vars["OBJECT_DIR"] = ConvertToNinjaPath(objPath);
|
||||
|
|
Loading…
Reference in New Issue