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

:static and :shared specifiers for links are not documented #1818

Closed
KyrietS opened this issue Feb 19, 2022 · 3 comments · Fixed by #1826
Closed

:static and :shared specifiers for links are not documented #1818

KyrietS opened this issue Feb 19, 2022 · 3 comments · Fixed by #1826

Comments

@KyrietS
Copy link
Member

KyrietS commented Feb 19, 2022

When linking to a library you can specify additional decorators:

links { "some_syslib:static" }
links { "some_syslib:shared" }

It works only for GCC compiler. This feature was introduced in 5.0-alpha11 and is implemented here: https://github.com/premake/premake-core/blob/master/src/tools/gcc.lua#L571

As pointed out in the discussion #1817 it should be documented.

Suggested locations where documentation can be extended:

@nickclark2016
Copy link
Member

Since Clang relies pretty heavily on GCC, do we know if Clang supports this as well?

@KyrietS
Copy link
Member Author

KyrietS commented Feb 21, 2022

I'm not the one who knows the answer 😄
I have no experience with Clang ._.

@nickclark2016
Copy link
Member

nickclark2016 commented Feb 21, 2022

As part of this, we should probably investigate the clang and msvc toolsets.

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

Successfully merging a pull request may close this issue.

2 participants