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

[feature request] Add option to configure linker for premake.gcc #550

Open
runlevel5 opened this issue Nov 15, 2022 · 2 comments
Open

[feature request] Add option to configure linker for premake.gcc #550

runlevel5 opened this issue Nov 15, 2022 · 2 comments

Comments

@runlevel5
Copy link

runlevel5 commented Nov 15, 2022

AFAIK there is no option to choose different linker for premake.gcc. This issue is a proposal to introduce premake.gcc.linker or premake.gcc.ld option for users to change linker, for example to lld

@bkaradzic
Copy link
Owner

It's already supported via GCC -B command line option:

-Bprefix

This option specifies where to find the executables, libraries, include files, and data files of the compiler itself.

The compiler driver program runs one or more of the subprograms cpp, cc1, as and ld. It tries prefix as a prefix for
each program it tries to run, both with and without `machine/version/'.

https://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/Directory-Options.html

So you just need to add directory where you alternative linker is located to linkoptions in your script.

@runlevel5
Copy link
Author

@bkaradzic the -B would cover the scenario in which ld is located in non-standard location. However I do not think it is the flag to choose totally different linker, for example lld in the case of using clang

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

No branches or pull requests

3 participants
@runlevel5 @bkaradzic and others