• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:toolchain

7 #     https://www.apache.org/licenses/LICENSE-2.0
20 # Scope defining the current toolchain. Contains all of the arguments required
27 # gn gen out --args='pw_command_launcher="ccache"'
31 # Creates a toolchain target.
45 # generate_from: (optional) The full target name of the toolchain that can
46 # trigger this toolchain to be generated. GN only allows one toolchain to
48 # same generate_toolchain target only one should declare a toolchain. This
49 # is primarily to allow generating sub-toolchains. Defaults to
52 # targets in this toolchain. These take precedence over args.gni settings.
55 # current_cpu: The CPU of the toolchain.
57 # current_os: The OS of the toolchain. Defaults to "".
62 assert(defined(invoker.defaults), "toolchain is missing 'defaults'")
64 # On the default toolchain invocation, you typically need to generate all
65 # toolchains you encounter. For sub-toolchains, they must be generated from
80 # These values should always be set as they influence toolchain
89 # Determine OS of toolchain, which is the builtin argument "current_os".
92 toolchain(target_name) {
94 # print("Generating toolchain: ${target_name} by ${current_toolchain}")
96 assert(defined(invoker.cc), "toolchain is missing 'cc'")
105 "-MMD -MF $depfile", # Write out dependencies.
110 "-c {{source}}",
111 "-o {{output}}",
131 "-MMD -MF $depfile", # Write out dependencies.
136 "-c {{source}}",
137 "-o {{output}}",
146 assert(defined(invoker.cxx), "toolchain is missing 'cxx'")
155 "-MMD -MF $depfile", # Write out dependencies.
160 "-c {{source}}",
161 "-o {{output}}",
179 "-MMD -MF $depfile", # Write out dependencies.
185 "-c {{source}}",
186 "-o {{output}}",
204 "-MMD -MF $depfile", # Write out dependencies.
210 "-c {{source}}",
211 "-o {{output}}",
220 assert(defined(invoker.ar), "toolchain is missing 'ar'")
228 command = "rm -f {{output}} && ${invoker.ar} {{arflags}} rcs {{output}} {{inputs}}"
238 lib_switch = "-l"
239 lib_dir_switch = "-L"
252 "-Wl,-map,$_link_mapfile",
254 # Delete unreferenced sections. Helpful with -ffunction-sections.
255 "-Wl,-dead_strip",
260 "-Wl,-Map,$_link_mapfile",
262 # Delete unreferenced sections. Helpful with -ffunction-sections.
263 "-Wl,--gc-sections",
269 _link_flags += [ "-Wl,--start-group" ]
280 # Make sure you use this with --gc-sections, otherwise the
284 "-Wl,--whole-archive",
286 "-Wl,--no-whole-archive",
293 _link_flags += [ "-Wl,--end-group" ]
295 _link_flags += [ "-o $_link_outfile" ]
318 command = _link_command + " -shared"
319 description = "ld -shared $_link_outfile"
329 # GN-ism: GN gets mad if you directly forward the contents of
336 # GN-ism: GN gets mad if you directly forward the contents of
342 # Build arguments to be overridden when compiling cross-toolchain:
345 # in this toolchain. It is analogous to $pw_target_defaults in
349 # toolchain. Used for generating derivative toolchains.
368 # Creates a series of toolchain targets with common compiler options.