Skip to content
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

Write exact directory when generating build file #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sticks-stuff
Copy link

Running build.ninja using the -f flag in ninja from any other directory other than the directory it was originally configured in fails as it can't find the referenced includes. For example:

C:\Users\Charlotte>ninja -f l:\SM-TFCWXBaseAttributes\build.ninja
[1/2] Compiling "L:\tf2server\steamapps\common\Team Fortre...Server\tf\addons\sourcemod\plugins\viewmodel_override.smx"
FAILED: L:/tf2server/steamapps/common/Team Fortress 2 Dedicated Server/tf/addons/sourcemod/plugins/viewmodel_override.smx
L:\tf2server\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\spcomp.EXE L:\SM-TFCWXBaseAttributes\scripting\viewmodel_override.sp -iL:\SM-TFCWXBaseAttributes/scripting/include -h -v0 -ithird_party/include_submodules -ithird_party/vendored -o "L:\tf2server\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\plugins\viewmodel_override.smx"
L:\SM-TFCWXBaseAttributes\scripting\viewmodel_override.sp(23) : fatal error 183: cannot read from file: "stocksoup/tf/entity_prop_stocks"

Compilation aborted.
1 Error.

This fixes that, but it might be worth hiding this behind another command line argument, like --portable, as it does make resulting build files look ugly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant