Skip to content

Fix generated paths to be relative to the workspace.#33

Merged
Jarod42 merged 1 commit intojimon:masterfrom
tritao:fix-relative-paths
Sep 30, 2024
Merged

Fix generated paths to be relative to the workspace.#33
Jarod42 merged 1 commit intojimon:masterfrom
tritao:fix-relative-paths

Conversation

@tritao
Copy link
Copy Markdown
Contributor

@tritao tritao commented Sep 5, 2024

This needs a Premake change to work, for which there will be a PR upstream, but should also be safe to merge since it checks if it exists before patching it.

@Jarod42
Copy link
Copy Markdown
Collaborator

Jarod42 commented Sep 6, 2024

Comment thread ninja.lua Outdated

local getrelative = toolset.getrelative
if getrelative ~= nil then
toolset.getrelative = function(cfg, value)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang delegates to gcc (and so gcc.getrelative), so changing clang.getrelative won't work.
I meant that clang.getincludedirs(xx) -> gcc.getincludedirs(xx) -> --[[..]]gcc.getrelative(cfg, path)--[[..]]
I don't even think that p.overrides solve that issue :/

@Jarod42
Copy link
Copy Markdown
Collaborator

Jarod42 commented Sep 27, 2024

premake/premake-core#2244 is merged, that PR need to be updated to take into account the changes.

@tritao tritao force-pushed the fix-relative-paths branch 2 times, most recently from b10f2ed to 3dc48ce Compare September 27, 2024 18:02
@tritao
Copy link
Copy Markdown
Contributor Author

tritao commented Sep 27, 2024

Updated the PR to work with merged upstream API.

@Jarod42
Copy link
Copy Markdown
Collaborator

Jarod42 commented Sep 28, 2024

CI failed :-/
unsure of the origin though.
Investigating...

Embed scripts broken by premake/premake-core#2264
Waiting for core fix.

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.

2 participants