-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BEGIN_PUBLIC Implement shared_flag as cc_args Implements the shared_flag feature as cc_args rules. END_PUBLIC PiperOrigin-RevId: 671765792 Change-Id: I0c13873ef2b5c19908cbed13c1b88b5fc957c4cd
- Loading branch information
1 parent
98ab833
commit 4bf8bb1
Showing
5 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
load("//cc/toolchains:args.bzl", "cc_args") | ||
|
||
package(default_visibility = ["//visibility:private"]) | ||
|
||
cc_args( | ||
name = "shared_flag", | ||
actions = [ | ||
"//cc/toolchains/actions:cpp_link_dynamic_library", | ||
"//cc/toolchains/actions:cpp_link_nodeps_dynamic_library", | ||
"//cc/toolchains/actions:lto_index_for_dynamic_library", | ||
"//cc/toolchains/actions:lto_index_for_nodeps_dynamic_library", | ||
], | ||
args = ["-shared"], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
tests/rule_based_toolchain/legacy_features_as_args/goldens/unix/shared_flag.textproto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
enabled: false | ||
flag_sets { | ||
actions: "c++-link-dynamic-library" | ||
actions: "c++-link-nodeps-dynamic-library" | ||
actions: "lto-index-for-dynamic-library" | ||
actions: "lto-index-for-nodeps-dynamic-library" | ||
flag_groups { | ||
flags: "-shared" | ||
} | ||
} | ||
name: "shared_flag_test" |