Merge topic 'dev/custom-ninja-deptypes'
9523d2a5 ninja: Add support for custom depfile formats
This commit is contained in:
commit
a11d1c6135
5
Help/release/dev/custom-ninja-deptypes.rst
Normal file
5
Help/release/dev/custom-ninja-deptypes.rst
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
custom-ninja-deptypes
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
* Add a `CMAKE_NINJA_DEPTYPE_<LANG>` variable so that compilers may set the
|
||||||
|
deptype for use in Ninja other than those CMake itself knows about.
|
@ -418,6 +418,11 @@ cmNinjaTargetGenerator
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
deptype = "gcc";
|
deptype = "gcc";
|
||||||
|
const char* langdeptype = mf->GetDefinition("CMAKE_NINJA_DEPTYPE_" + lang);
|
||||||
|
if (langdeptype)
|
||||||
|
{
|
||||||
|
deptype = langdeptype;
|
||||||
|
}
|
||||||
depfile = "$DEP_FILE";
|
depfile = "$DEP_FILE";
|
||||||
const std::string flagsName = "CMAKE_DEPFILE_FLAGS_" + lang;
|
const std::string flagsName = "CMAKE_DEPFILE_FLAGS_" + lang;
|
||||||
std::string depfileFlags = mf->GetSafeDefinition(flagsName);
|
std::string depfileFlags = mf->GetSafeDefinition(flagsName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user