Make default toolchain a build argument
This change makes the default toolchain for the build system an
argument so that it can be configured per build target.
Change-Id: I32822be9a6e33376bb1e75b996f79d3451ef9963
diff --git a/BUILDCONFIG.gn b/BUILDCONFIG.gn
index 3cd4a1e..0a2648f 100644
--- a/BUILDCONFIG.gn
+++ b/BUILDCONFIG.gn
@@ -43,6 +43,12 @@
# Path to the .gni file in which the pw_executable_target_type template is
# defined. Empty string if using a GN primitive.
pw_executable_target_path = ""
+
+ # Toolchain for the current build target (desktop/device).
+ #
+ # If this is changed, you must run `ninja -t clean` to remove any files from
+ # the previous toolchain's build before building again.
+ pw_target_toolchain = "$dir_pw_toolchain:x86_linux_o2"
}
-set_default_toolchain("$dir_pw_toolchain:arm_gcc_cortex_m4_og")
+set_default_toolchain(pw_target_toolchain)