GN cannot build static_library that only depends on a source_set on OSX or Windows |
|
Issue descriptionPatch demonstrating the issue: https://codereview.chromium.org/2808293002/ The GN toolchain definition used on OSX and Windows fails to build a static_library whose only dependency is a source_set. The source_set is populated. Adding at least one source to the static_library will get the build to succeed. What steps will reproduce the problem? (1) Patch in the following CL: https://codereview.chromium.org/2808293002/ (2) Do a build What is the expected result? The build succeeds. What happens instead? The build fails on OSX and Windows. The trybot results show the errors.
,
Apr 11 2017
You're right :) Thank you very much for pointing me to complete_static_lib! I expected that the complete_static_lib behavior would be the default. In my mental model, source_set was a macro, and static_library materialized all source_sets. Perhaps it'd be worth adding/moving the first paragraph / first two paragraphs from the complete_static_lib doc to the static_lib doc? |
|
►
Sign in to add a comment |
|
Comment 1 by dpranke@chromium.org
, Apr 11 2017Status: Assigned (was: Untriaged)