diff options
author | 2016-02-08 16:00:09 +0000 | |
---|---|---|
committer | 2016-02-09 12:17:02 +0000 | |
commit | 3dd9cc68d35b460c69bea66d4c4cbcbfe2b210be (patch) | |
tree | 9957db189f5983d5a203953aabc9d49afd8a2080 /tools | |
parent | 913d0f5addc3b315bbd812e0496e564834fe9468 (diff) |
Add supportsDynamicLinker to CppConfiguration
Rather than a new protobuf field, this enabling flag is presence of a section with DYNAMIC linking mode in the CROSSTOOL file, whether or not it needs to specify any linker flags.
RELNOTES[NEW]: Better support for toolchains that don't have a dynamic linker.
--
MOS_MIGRATED_REVID=114110200
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cpp/CROSSTOOL | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/cpp/CROSSTOOL b/tools/cpp/CROSSTOOL index 1552fd733e..269edea9d8 100644 --- a/tools/cpp/CROSSTOOL +++ b/tools/cpp/CROSSTOOL @@ -62,6 +62,7 @@ toolchain { tool_path { name: "objcopy" path: "/bin/false" } tool_path { name: "objdump" path: "/bin/false" } tool_path { name: "strip" path: "/bin/false" } + linking_mode_flags { mode: DYNAMIC } } toolchain { @@ -185,6 +186,7 @@ toolchain { compiler_flag: "-fdata-sections" linker_flag: "-Wl,--gc-sections" } + linking_mode_flags { mode: DYNAMIC } } toolchain { @@ -278,6 +280,7 @@ toolchain { compiler_flag: "-ffunction-sections" compiler_flag: "-fdata-sections" } + linking_mode_flags { mode: DYNAMIC } } toolchain { @@ -399,6 +402,7 @@ toolchain { compiler_flag: "-fdata-sections" linker_flag: "-Wl,--gc-sections" } + linking_mode_flags { mode: DYNAMIC } } toolchain { @@ -433,6 +437,7 @@ toolchain { objcopy_embed_flag: "binary" tool_path { name: "objdump" path: "C:/mingw/bin/objdump" } tool_path { name: "strip" path: "C:/mingw/bin/strip" } + linking_mode_flags { mode: DYNAMIC } } toolchain { @@ -466,6 +471,7 @@ toolchain { objcopy_embed_flag: "binary" tool_path { name: "objdump" path: "C:/msys64/mingw64/bin/objdump" } tool_path { name: "strip" path: "C:/msys64/mingw64/bin/strip" } + linking_mode_flags { mode: DYNAMIC } } toolchain { @@ -501,6 +507,7 @@ toolchain { objcopy_embed_flag: "binary" tool_path { name: "objdump" path: "C:/Program Files (x86)/LLVM/bin/objdump" } tool_path { name: "strip" path: "C:/Program Files (x86)/LLVM/bin/strip" } + linking_mode_flags { mode: DYNAMIC } } toolchain { @@ -537,4 +544,5 @@ toolchain { objcopy_embed_flag: "binary" tool_path { name: "objdump" path: "C:/msys64/usr/bin/objdump" } tool_path { name: "strip" path: "C:/msys64/usr/bin/strip" } + linking_mode_flags { mode: DYNAMIC } } |