• Home
  • Raw
  • Download

Lines Matching +full:gcc +full:- +full:pgo

2 # Use of this source code is governed by a BSD-style license that can be
37 swift_whole_module_optimization = -1
40 swift_toolchain_path = -1
48 if (swift_toolchain_path == -1) {
54 # be kept in sync with the `version` of `third_party/swift-toolchain` in
56 swiftc_version = "swift-5.8-release"
59 swift_toolchain_path = "//third_party/swift-toolchain/"
65 if (swift_whole_module_optimization == -1) {
73 # proper input-dirty checking, but that could be expensive. Instead, use a
75 # This won't cause a re-generation of GN files when the tool script changes
94 # Rust targets that are build-time artificts such as proc macros.
115 # supply for these values are to force-disable them.
132 "Goma and re-client can't be used together.")
134 "re-client and cc_wrapper can't be used together.")
163 swiftmodule_switch = "-Wl,-add_ast_path,"
174 …compiler_prefix = "${rbe_bin_dir}/rewrapper -cfg=${toolchain_rbe_cc_cfg_file} -exec_root=${rbe_exe…
195 ld += " -B " + invoker.bin_path
210 root_build_dir) + " --files-to-instrument=" +
212 root_build_dir) + " --target-os=" + target_os
220 linker_driver_args = "-Wcrl,driver,$ld"
225 …linker_driver_args += " -Wcrl,strippath,${_strippath} -Wcrl,installnametoolpath,${_installnametool…
230 lib_switch = "-l"
231 lib_dir_switch = "-L"
240 dsym_switch = " -Wcrl,dsym,{{root_out_dir}} "
241 dsym_switch += "-Wcrl,dsymutilpath," +
285 …rustc_wrapper\" --rustc=$rustc --depfile=$depfile --rsp=$rspfile -- -Clinker=\"$_cxx\" $rustc_comm…
307 …\" --rustc=$rustc --depfile=$depfile --rsp=$rspfile -- -Clinker=\"$_cxx\" $rustc_common_args {{rus…
317 # TODO(danakj): solink can generate TOC files for re-exporting library
334 …_wrapper\" --rustc=$rustc --depfile=$depfile --rsp=$rspfile -- -Clinker=\"$linker_driver\" $rustc_…
344 # TODO(danakj): solink can generate TOC files for re-exporting library
363 …_wrapper\" --rustc=$rustc --depfile=$depfile --rsp=$rspfile -- -Clinker=\"$linker_driver\" $rustc_…
373 # TODO(danakj): solink can generate TOC files for re-exporting library
392 …ustc_wrapper\" --rustc=$rustc --depfile=$depfile --rsp=$rspfile -- -Clinker=\"${_cxx}\" $rustc_com…
399 precompiled_header_type = "gcc"
400 …command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -c {{source}…
401 depsformat = "gcc"
408 precompiled_header_type = "gcc"
409 …command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{sourc…
410 depsformat = "gcc"
416 # For GCC we can just use the C compiler to compile assembly.
418 …command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} -c {{source}} -o {{outp…
419 depsformat = "gcc"
426 precompiled_header_type = "gcc"
427 …command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{framework_dirs}} {{cflags}} {{cfla…
428 depsformat = "gcc"
435 precompiled_header_type = "gcc"
436 …command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{framework_dirs}} {{cflags}} {{cfl…
437 depsformat = "gcc"
452 …command = "rm -f {{output}} && TOOL_VERSION=${tool_versions.filter_libtool} $python_path $script $…
453 description = "LIBTOOL-STATIC {{output}}"
455 ar = "${prefix}llvm-ar"
456 command = "\"$ar\" {{arflags}} -r -c -s -D {{output}} @$rspfile"
460 command = "rm -f {{output}} && $command"
482 # diffing steps, since that library always needs to be re-linked.
494 nm = "${prefix}llvm-nm"
495 otool = "${prefix}llvm-otool"
498 …does_reexport_command = "[ ! -e \"$dylib\" -o ! -e \"$tocname\" ] || $otool -l \"$dylib\" | grep -
501 "$linker_driver_env $linker_driver $linker_driver_args -shared "
503 link_command += " -Wl,-install_name,@rpath/\"{{target_output_name}}{{output_extension}}\" "
506 link_command += "{{ldflags}} -o \"$dylib\" \"@$rspfile\" {{rlibs}}"
508 …replace_command = "if ! cmp -s \"$temporary_tocname\" \"$tocname\"; then mv \"$temporary_tocname\"…
509 …extract_toc_command = "{ $otool -l \"$dylib\" | grep LC_ID_DYLIB -A 5; $nm -gPp \"$dylib\" | cut -
554 …link_command = "$linker_driver_env $linker_driver $linker_driver_args -bundle {{ldflags}} -o \"$so…
584 …command = "$linker_driver_env $linker_driver $linker_driver_args $dsym_switch {{ldflags}} -o \"$ou…
622 command = "rm -rf {{output}} && /bin/cp -Rc {{source}} {{output}}"
624 command = "rm -rf {{output}} && /bin/cp -Rld {{source}} {{output}}"
631 # of Xcode-based tools used by the macOS toolchain, so we intentionally
638 depsformat = "gcc"
656 _extra_flags += " -whole-module-optimization"
675 # `-disable-bridging-pch`.
678 # regular Objective-C header files and cannot be loaded as such).
682 # `-pch-output-dir $dir`). If this parameter is not passed, the
702 # Include the version of the compiler on the command-line. This causes
706 _extra_flags += " -swiftc-version $swiftc_version"
709 # Include the version of Xcode on the command-line (if specified via
716 # changes, they may encode dependency on now non-existing frameworks
719 _extra_flags += " -xcode-version ${toolchain_args.xcode_build}"
723 _extra_flags += " -swift-toolchain-path " +
728 # Objective-C code compiled with module support enabled (-fmodules).
737 # code is compiled without `-fmodules`), the dependent modules are not
743 # is evaluated, even if building with `-fno-modules` when building with
744 # `-std=c++20` (see https://crbug.com/1284275 for details). This causes
749 # import pre-processor instructions (#import <UIKit/UIKit.h>) to work
751 _extra_flags += " -fix-module-imports"
754 "$_env_vars $python_path $_tool -module-name {{module_name}} " +
755 "-root-dir " + rebase_path("//", root_build_dir) + " " +
756 "-object-dir $_objects_dir -pch-output-dir $_pch_output_dir " +
757 "-module-path {{target_gen_dir}}/{{module_name}}.swiftmodule " +
758 "-header-path {{target_gen_dir}}/{{target_output_name}}.h " +
759 "-depfile {{target_out_dir}}/{{module_name}}.d " +
760 "-bridge-header {{bridge_header}} $_extra_flags " +
767 # of Xcode-based tools used by the macOS toolchain, so we intentionally
781 "-p '${toolchain_args.current_os}' " +
782 "-e '${invoker.target_environment}' " +
783 "-t '${invoker.deployment_target}' " +
784 "-T '{{bundle_product_type}}' " +
785 "-P '{{bundle_partial_info_plist}}' " + "-o {{output}} {{inputs}}"
799 # prebuilt Rust stdlib for building proc macros (and other for-build-use
841 # build faster. They do not need PGO etc, so no official builds.