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
Does not prebuilt_cxx_library.static_lib support $(location //:target)? #592
Comments
You probably need to make a rule that can export a subpath, then you can use tge |
Yep, you need it to be the default output of a target or subtarget. What kind of rule is
|
As a temporary workaround though (until http_archive supports it natively), you can also just write a rule that takes a target (such as an
Then you use it like this:
|
When using prebuilt_cxx_libary, it is OK if the member static_lib is set to a relative path.
However, when I use $(location //:target) buck2 reports the following error
I asked if prebuilt_cxx_libary.static_lib supports $(location //:target), just like prebuilt_cxx_libary.exported_linker_flags supports it. Thanks!
The text was updated successfully, but these errors were encountered: