Remove unused bitcode flags This should be done in the crosstool anyways Closes #7358. PiperOrigin-RevId: 234670987
diff --git a/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java b/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java index 9f6fa1e..81d7f23 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java +++ b/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java
@@ -389,20 +389,16 @@ * Compile the minimal set of bitcode markers. This is often the best option for developer/debug * builds. */ - EMBEDDED_MARKERS( - "embedded_markers", ImmutableList.of("bitcode_embedded_markers"), "-fembed-bitcode-marker"), + EMBEDDED_MARKERS("embedded_markers", ImmutableList.of("bitcode_embedded_markers")), /** Fully embed bitcode in compiled files. This is often the best option for release builds. */ - EMBEDDED("embedded", ImmutableList.of("bitcode_embedded"), "-fembed-bitcode"); + EMBEDDED("embedded", ImmutableList.of("bitcode_embedded")); private final String mode; private final ImmutableList<String> featureNames; - private final ImmutableList<String> clangFlags; - private AppleBitcodeMode( - String mode, ImmutableList<String> featureNames, String... clangFlags) { + private AppleBitcodeMode(String mode, ImmutableList<String> featureNames) { this.mode = mode; this.featureNames = featureNames; - this.clangFlags = ImmutableList.copyOf(clangFlags); } @Override @@ -420,14 +416,6 @@ return featureNames; } - /** - * Returns the flags that should be added to compile and link actions to use this bitcode - * setting. - */ - public ImmutableList<String> getCompileAndLinkFlags() { - return clangFlags; - } - /** Converts to {@link AppleBitcodeMode}. */ public static class Converter extends EnumConverter<AppleBitcodeMode> { public Converter() {