aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/cpp/CROSSTOOL.tpl
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2017-11-14 01:45:02 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-14 01:47:03 -0800
commit9cc954a8c1e1f5134c4b6701588cd226e9e52707 (patch)
treef91f1c8dc695c6249d25a7e9b189f4c28ebef29e /tools/cpp/CROSSTOOL.tpl
parent4260c30a03a9b83d48a5e8690aca19cd80be4c38 (diff)
Add win_def_file attribute to cc rules.
RELNOTES[NEW]: Users can use win_def_file attribute to specify a DEF file for exporting symbols when build a shared library on Windows. Change-Id: Ifa28d8b7b24eaefcefc9640d8dc56fd2931e9688 PiperOrigin-RevId: 175651203
Diffstat (limited to 'tools/cpp/CROSSTOOL.tpl')
-rw-r--r--tools/cpp/CROSSTOOL.tpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/cpp/CROSSTOOL.tpl b/tools/cpp/CROSSTOOL.tpl
index 0307a3ca4b..000bc4b595 100644
--- a/tools/cpp/CROSSTOOL.tpl
+++ b/tools/cpp/CROSSTOOL.tpl
@@ -385,6 +385,7 @@ toolchain {
implies: 'use_linker'
implies: 'no_stripping'
implies: 'has_configured_linker_path'
+ implies: 'def_file'
}
action_config {
@@ -994,7 +995,7 @@ toolchain {
}
feature {
- name: 'windows_export_all_symbols'
+ name : 'def_file',
flag_set {
expand_if_all_available: 'def_file_path'
action: 'c++-link-executable'
@@ -1010,6 +1011,10 @@ toolchain {
}
feature {
+ name: 'windows_export_all_symbols'
+ }
+
+ feature {
name: 'no_windows_export_all_symbols'
}