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

build script generator - makes a nonsense parameter #570

Closed
ghost opened this issue Mar 2, 2021 · 4 comments
Closed

build script generator - makes a nonsense parameter #570

ghost opened this issue Mar 2, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 2, 2021

"-ffile-prefix-map={project_source_dir}=.",
"-ffile-prefix-map={gccpath}=.",

These flags are build system dependent and not filtered, will always create a useless one.

-ffile-prefix-map==.

@salkinium
Copy link
Member

The flags are indeed build system dependent, hence their specialization by the specific build system collector:
https://github.com/modm-io/modm/blob/develop/tools/build_script_generator/cmake/module.lb#L48

@ghost
Copy link
Author

ghost commented Mar 3, 2021

Should the specialization then not remove the irrelevant one instead of produce a garbage parameter? It would be the most correct thing to do.

@salkinium
Copy link
Member

I don't understand what the issue is. These flags where added in #558 to make the file paths in the debug sections relative to the compiler and project sources. The {gccpath} is computed by the build system, since it differs per OS/user.

@ghost ghost closed this as completed Mar 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant