Buildroot hacks for wimp
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn index b74b2e2..e3a4e52 100644 --- a/build/config/BUILDCONFIG.gn +++ b/build/config/BUILDCONFIG.gn
@@ -592,7 +592,21 @@ win_toolchain_version = "" clang_win = "" clang_win_version = "" - host_toolchain = "//build/toolchain/wasm" + if (host_os == "linux") { + # Use clang for the x86/64 Linux host builds. + if (host_cpu == "x86" || host_cpu == "x64") { + host_toolchain = "//build/toolchain/linux:clang_$host_cpu" + } else { + host_toolchain = "//build/toolchain/linux:$host_cpu" + } + } else if (host_os == "mac") { + host_toolchain = "//build/toolchain/mac:clang_$host_cpu" + } else if (host_os == "win") { + assert(is_clang) + host_toolchain = "//build/toolchain/win:clang_$host_cpu" + } else { + assert(false, "Unknown host for wasm compile") + } set_default_toolchain("//build/toolchain/wasm") } else { assert(false, "Toolchain not set because of unknown platform.")
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 1da7b04..12f34ab 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn
@@ -1012,7 +1012,7 @@ "-Wshorten-64-to-32", "-Wimplicit-int-conversion", "-Wsign-compare", - "-Wsign-conversion", + #"-Wsign-conversion", # Avoid bugs of the form `if (size_t i = size; i >= 0; --i)` while # fixing types to be sign-correct. "-Wtautological-unsigned-zero-compare",
diff --git a/build/config/mac/mac_sdk.gni b/build/config/mac/mac_sdk.gni index 6d59b1b..b2f1b43 100644 --- a/build/config/mac/mac_sdk.gni +++ b/build/config/mac/mac_sdk.gni
@@ -18,8 +18,8 @@ mac_sdk_path = "" } -assert(mac_sdk_min != "") -assert(mac_deployment_target != "") +#assert(mac_sdk_min != "") +#assert(mac_deployment_target != "") if (mac_sdk_path == "") { find_sdk_args = []
diff --git a/build/toolchain/wasm.gni b/build/toolchain/wasm.gni index 0d9e3bf..a5e33ac 100644 --- a/build/toolchain/wasm.gni +++ b/build/toolchain/wasm.gni
@@ -101,6 +101,7 @@ "deps", "includes", "inputs", + "libs", "sources", "include_dirs", "public_configs",