Skip to content

Commit

Permalink
Improve "need a custom toolchain" message to log more information. (#…
Browse files Browse the repository at this point in the history
…32239)

Logging what gn thinks is going on for the host/target OS and cpu can help
diagnose why we didn't find toolchain in the big if cascade.
  • Loading branch information
bzbarsky-apple authored Feb 21, 2024
1 parent 7be1b2e commit 40fc3ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/config/BUILDCONFIG.gn
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ if (_chip_defaults.custom_toolchain != "") {
"Unsupported target_cpu: ${current_cpu}. Shall be arm for webOS")
}
} else {
assert(false, "No toolchain specified, please specify custom_toolchain")
assert(
false,
"No toolchain specified, please specify custom_toolchain for host_os='${host_os}', target_os='${target_os}', host_cpu='${host_cpu}', target_cpu='${target_cpu}'")
}

set_default_toolchain(_default_toolchain)
Expand Down

0 comments on commit 40fc3ea

Please sign in to comment.