Skip to content

Commit fe6c470

Browse files
authored
Revert "Add 5.x compat" (#862)
This reverts commit e71ae08.
1 parent 3736e4e commit fe6c470

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

swift/internal/xcode_swift_toolchain.bzl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,7 @@ def _command_line_objc_copts(compilation_mode, cpp_fragment, objc_fragment):
145145
"-Wno-extra",
146146
]
147147

148-
if getattr(cpp_fragment, "objccopts", None) != None:
149-
clang_copts = getattr(cpp_fragment, "objccopts") + legacy_copts
150-
else:
151-
clang_copts = getattr(objc_fragment, "copts", []) + legacy_copts
148+
clang_copts = cpp_fragment.objccopts + legacy_copts
152149
return [copt for copt in clang_copts if copt != "-g"]
153150

154151
def _platform_developer_framework_dir(

0 commit comments

Comments
 (0)