• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:swift

2 # Use of this source code is governed by a BSD-style license that can be
5 import("//build/config/ios/ios_sdk.gni")
6 import("//build/toolchain/apple/toolchain.gni")
7 import("//build/toolchain/rbe.gni")
8 import("//build/toolchain/siso.gni")
9 import("//build/toolchain/toolchain.gni")
10 import("//build_overrides/build.gni")
12 # This is included by reference in the //build/config/compiler config that
33 triplet_environment = "-simulator"
37 triplet_environment = "-macabi"
43 triplet_os = "apple-ios"
47 "-target",
48 "$triplet_cpu-$triplet_os$ios_deployment_target$triplet_environment",
52 # (defines are passed via the command line, and build system rebuild things
61 "-swift-version",
66 # When using -std=c++20 or higher, clang automatically returns true for
68 # because Objective-C code uses this to detect whether `@import` can be
74 "-Xclang",
75 "-fno-cxx-modules",
78 cflags_objcc += [ "-fsanitize-coverage=func,trace-pc-guard" ]
88 ldflags += [ "-Wl,-fixup_chains" ]
92 ldflags += [ "-fapplication-extension" ]
93 cflags += [ "-fapplication-extension" ]
97 # This is included by reference in the //build/config/compiler:runtime_library
99 # that is iOS-only. Please see that target for advice on what should go in
112 "-isysroot",
116 "-sdk",
122 "-isystem",
124 "-iframework",
129 "-isystem",
131 "-Fsystem",
145 # as a regular macOS app), so an additional -rpath is required.
147 ldflags += [ "-Wl,-rpath,@loader_path/../Frameworks" ]
150 ldflags += [ "-Wl,-rpath,@executable_path/Frameworks" ]
157 "-e",
162 # as a regular macOS app), so an additional -rpath is required.
164 ldflags += [ "-Wl,-rpath,@loader_path/../../../../Frameworks" ]
167 ldflags += [ "-Wl,-rpath,@executable_path/../../Frameworks" ]
172 # Always load Objective-C categories and class.
173 "-Wl,-ObjC",
176 # The path to the Swift compatibility libraries (required to run code built
179 # system toolchain. When using the hermetic swift toolchain instead, those
192 # The Swift compatibility libraries have changed location starting with
203 "$ios_sdk_path/usr/lib/swift",
204 "$_swift_compatibility_libs_prefix/usr/lib/swift/" +
208 # When building for catalyst, some Swift support libraries are in a
211 lib_dirs += [ "$ios_sdk_path/System/iOSSupport/usr/lib/swift" ]
217 "-Wl,-rpath,@executable_path/Frameworks",
218 "-Wl,-rpath,@loader_path/Frameworks",
227 "-iframework",
230 "-iframework",
246 # This needs to be fixed if we want to use Swift - C++ interop.
248 swiftflags = [ "-enable-experimental-cxx-interop" ]
263 # The symlinks are created by //build/config/apple/sdk_info.py script invoked
264 # via exec_script() from //build/config/{ios/ios_sdk.gni,mac/mac_sdk.gni}.
273 script = "//build/noop.py"
287 script = "//build/config/ios/strip_arm64e.py"
291 "--output",
293 "--input",
295 "--xcode-version",
301 deps = [ "//build/config/sanitizers:deps" ]