Fix premake script copying compile commands on windows (#24)
* Test new premake config for compile_commands on windows * Update premake config to call into cmd
This commit is contained in:
parent
39f3880c14
commit
fd9f56c58d
@ -72,5 +72,10 @@ workspace "doghook"
|
|||||||
"{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json",
|
"{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json",
|
||||||
"{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json"
|
"{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json"
|
||||||
}
|
}
|
||||||
filter {}
|
filter "system:windows"
|
||||||
|
postbuildcommands {
|
||||||
|
"cmd.exe /c \"" .. "{MKDIR} %{wks.location}/compile_commands/",
|
||||||
|
"cmd.exe /c \"" .. "{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json",
|
||||||
|
"cmd.exe /c \"" .. "{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json*"
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user