From 536681d0153d70b5275cf8e3f6b228e56f5c14c6 Mon Sep 17 00:00:00 2001 From: Conrad Kreyling Date: Tue, 6 Feb 2024 10:34:16 -0500 Subject: [PATCH] Ensure options is persistent in cross compile paths --- build/llvm/LLVM.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/llvm/LLVM.lua b/build/llvm/LLVM.lua index 3e5209e7..0a08c061 100644 --- a/build/llvm/LLVM.lua +++ b/build/llvm/LLVM.lua @@ -448,7 +448,7 @@ function build_llvm(llvm_build) if os.host() == "linux" then local host_arch = unix_host_architecture() if host_arch ~= "aarch64" then - options = "" + options = options .. "" .. ' -DCMAKE_SYSTEM_NAME=Linux' .. ' -DCMAKE_SYSTEM_PROCESSOR=aarch64' .. ' -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc' @@ -464,7 +464,7 @@ function build_llvm(llvm_build) if os.host() == "macosx" then local host_arch = unix_host_architecture() if host_arch ~= "arm64" then - options = "" + options = options .. "" .. ' -DCMAKE_SYSTEM_NAME=Darwin' .. ' -DCMAKE_SYSTEM_PROCESSOR=arm64' .. ' -DCMAKE_C_COMPILER_TARGET=arm64-apple-darwin21.6.0'