CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
71 lines
1.8 KiB
Plaintext
71 lines
1.8 KiB
Plaintext
# All targets will get this list of configs by default.
|
|
# Targets can opt out of a config by removing it from their local configs list.
|
|
# If you're adding global flags and don't need targets to be able to opt out,
|
|
# add the flags to compiler_defaults, not to a new config.
|
|
shared_binary_target_configs = [
|
|
"//llvm/utils/gn/build:compiler_defaults",
|
|
"//llvm/utils/gn/build:llvm_code",
|
|
"//llvm/utils/gn/build:no_exceptions",
|
|
"//llvm/utils/gn/build:no_rtti",
|
|
"//llvm/utils/gn/build:thin_archive",
|
|
"//llvm/utils/gn/build:warn_covered_switch_default",
|
|
]
|
|
|
|
# Apply that default list to the binary target types.
|
|
set_defaults("executable") {
|
|
configs = shared_binary_target_configs
|
|
}
|
|
set_defaults("loadable_module") {
|
|
configs = shared_binary_target_configs
|
|
}
|
|
set_defaults("static_library") {
|
|
configs = shared_binary_target_configs
|
|
}
|
|
set_defaults("shared_library") {
|
|
configs = shared_binary_target_configs + [ "//llvm/utils/gn/build:zdefs" ]
|
|
}
|
|
set_defaults("source_set") {
|
|
configs = shared_binary_target_configs
|
|
}
|
|
|
|
if (target_os == "") {
|
|
target_os = host_os
|
|
}
|
|
if (current_os == "") {
|
|
current_os = target_os
|
|
}
|
|
|
|
if (target_cpu == "") {
|
|
target_cpu = host_cpu
|
|
}
|
|
if (current_cpu == "") {
|
|
current_cpu = target_cpu
|
|
}
|
|
|
|
if (host_os == "win") {
|
|
host_toolchain = "//llvm/utils/gn/build/toolchain:win"
|
|
} else {
|
|
host_toolchain = "//llvm/utils/gn/build/toolchain:unix"
|
|
}
|
|
|
|
set_default_toolchain(host_toolchain)
|
|
|
|
if (current_os == "android") {
|
|
foreach(target_type,
|
|
[
|
|
"executable",
|
|
"loadable_module",
|
|
"shared_library",
|
|
]) {
|
|
template(target_type) {
|
|
target(target_type, target_name) {
|
|
forward_variables_from(invoker, "*")
|
|
if (!defined(deps)) {
|
|
deps = []
|
|
}
|
|
deps += [ "//llvm/utils/gn/build/libs/implicit" ]
|
|
}
|
|
}
|
|
}
|
|
}
|