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

cmake includes absolute filenames in the binary #496

Closed
ghost opened this issue Oct 20, 2019 · 4 comments
Closed

cmake includes absolute filenames in the binary #496

ghost opened this issue Oct 20, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 20, 2019

I know it's not related to solvespace itself, but I find it annoying and I know there is a workaround. Dunno if that would be ok for solvespace, though, since it probably does not work for Visual Studio.

I use it at work with gcc and clang, haven't seen any problem for now, only benefits (like, allows to debug softwares built by a colleague without needing tricks because of user name is in the path). Never tried it with an IDE, nor with Visual Studio: i3 + zsh + vim + cgdb are as powerful as many IDE I know (and crash less).

I'd be ok to take some time writing a patch if such "feature" would be accepted.

@whitequark
Copy link
Contributor

There are two solutions behind your link. I think using -fdebug-prefix-map in the case where GCC/Clang are used is perfectly fine. I think using a shell script to rewrite options is too fragile.

@ghost
Copy link
Author

ghost commented Oct 20, 2019

I think -fdebug-prefix-map didn't worked for me, unlike the script. I'll verify that tomorrow on projects I really know how they work.

@whitequark
Copy link
Contributor

One issue is that e.g. Debian packages use their own -fdebug-prefix-map, so this feature should be possible to turn off.

@whitequark
Copy link
Contributor

Fixed in 9e7681f.

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

No branches or pull requests

1 participant