diff options
author | Googler <noreply@google.com> | 2015-08-24 08:57:36 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-08-24 14:02:58 +0000 |
commit | b742f1844ec837f9feeec7b5a9e4bfa2a86f1301 (patch) | |
tree | 12e47006779cd437c43da78c18f6cc62364e000d /src/main/java/com/google/devtools/build | |
parent | ae147b5e7c6c15af4644411537c383a25adc4070 (diff) |
Add '.ldscript' as a possible linker script file extension.
This is an easy way to deal with other code that names scripts as such,
rather than requiring that scripts be renamed to end in ".lds"
RELNOTES[NEW]: deps of a cc_binary may contain linker script files ending in ".ldscript"
--
MOS_MIGRATED_REVID=101346375
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java index bf9155d3f9..655dcd5f1a 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java @@ -109,7 +109,7 @@ public final class CppFileTypes { public static final FileType SHARED_LIBRARY = FileType.of(".so", ".dylib"); public static final FileType INTERFACE_SHARED_LIBRARY = FileType.of(".ifso"); - public static final FileType LINKER_SCRIPT = FileType.of(".ld", ".lds"); + public static final FileType LINKER_SCRIPT = FileType.of(".ld", ".lds", ".ldscript"); // Matches shared libraries with version names in the extension, i.e. // libmylib.so.2 or libmylib.so.2.10. private static final Pattern VERSIONED_SHARED_LIBRARY_PATTERN = |