-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed buildcommand not haveing project working directory #39
base: master
Are you sure you want to change the base?
Conversation
local function prebuild_rule(cfg) | ||
if #cfg.prebuildcommands > 0 or cfg.prebuildmessage then | ||
local commands = {} | ||
if cfg.prebuildmessage then | ||
commands = {os.translateCommandsAndPaths("{ECHO} " .. cfg.prebuildmessage, cfg.workspace.basedir, cfg.workspace.location)} | ||
end | ||
commands = table.join(commands, os.translateCommandsAndPaths(cfg.prebuildcommands, cfg.workspace.basedir, cfg.workspace.location)) | ||
commands = table.join(commands, os.translateCommandsAndPaths(fixupbuildcommands(cfg,cfg.prebuildcommands), cfg.workspace.basedir, cfg.workspace.location)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just have to play with 2nd or 3rd parameter.
Can you share a problematic config? |
I simplified my project premake5.lua to https://github.com/LostbBlizzard/premake-problematic-ninja-example. also may need to run the believe the issue is from the include function |
As mentionned in Tokens#path-in-commands, |
there may be a cleaner way to fix this issue.