From 5033f5de8e32239742aa7b6d57635514e09e8b67 Mon Sep 17 00:00:00 2001 From: Neil Hickey Date: Tue, 31 Jan 2023 09:21:59 +0000 Subject: [PATCH] [Docker] Fixing scripts for llvm-config inclusion. Note: This will be undone once the docker images have been updated --- tests/scripts/task_config_build_arm.sh | 2 +- tests/scripts/task_config_build_minimal_cross_isa.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/task_config_build_arm.sh b/tests/scripts/task_config_build_arm.sh index 50b1a9553f270..bd14a91f251be 100755 --- a/tests/scripts/task_config_build_arm.sh +++ b/tests/scripts/task_config_build_arm.sh @@ -28,7 +28,7 @@ echo set\(USE_RPC ON\) >> config.cmake echo set\(USE_MICRO ON\) >> config.cmake echo set\(USE_MICRO_STANDALONE_RUNTIME ON\) >> config.cmake echo set\(USE_PROFILER ON\) >> config.cmake -echo set\(USE_LLVM llvm-config\) >> config.cmake +echo -e 'find_program(LLVM_CONFIG "llvm-config")\nif (LLVM_CONFIG) \n\tset(USE_LLVM llvm-config) \nelse() \n\tset(USE_LLVM llvm-config-8)\nendif()' >> config.cmake echo set\(CMAKE_CXX_FLAGS -Werror\) >> config.cmake echo set\(USE_VTA_FSIM ON\) >> config.cmake echo set\(USE_ARM_COMPUTE_LIB ON\) >> config.cmake diff --git a/tests/scripts/task_config_build_minimal_cross_isa.sh b/tests/scripts/task_config_build_minimal_cross_isa.sh index ac556d48ed2c8..1c88de050bb60 100755 --- a/tests/scripts/task_config_build_minimal_cross_isa.sh +++ b/tests/scripts/task_config_build_minimal_cross_isa.sh @@ -45,5 +45,5 @@ if [ "$architecture_type" != "aarch64" ]; then echo set\(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY\) >> config.cmake else # This usually runs in the ci_arm docker image. - echo set\(USE_LLVM llvm-config-8\) >> config.cmake + echo -e 'find_program(LLVM_CONFIG "llvm-config")\nif (LLVM_CONFIG) \n\tset(USE_LLVM llvm-config) \nelse() \n\tset(USE_LLVM llvm-config-8)\nendif()' >> config.cmake fi