2020-03-23 09:03:24 +01:00
|
|
|
# This file is used to configure the environment variables and define
|
|
|
|
# the command line arguments for cmake
|
|
|
|
|
|
|
|
# environment variables that are set per operating system
|
|
|
|
environment:
|
|
|
|
linux:
|
|
|
|
CC: 'clang'
|
|
|
|
CXX: 'clang++'
|
|
|
|
LD: 'LLD'
|
|
|
|
windows:
|
|
|
|
'CC': 'cl'
|
|
|
|
'CXX': 'cl'
|
|
|
|
'LD': 'link'
|
|
|
|
|
|
|
|
# command line arguments for cmake
|
|
|
|
arguments:
|
|
|
|
# command line arguments for all OS
|
|
|
|
general:
|
|
|
|
# LLVM path is set in script
|
|
|
|
# LLVM_ENABLE_PROJECTS is set in script
|
|
|
|
- '-G Ninja'
|
|
|
|
- '-D CMAKE_BUILD_TYPE=Release'
|
|
|
|
- '-D LLVM_ENABLE_ASSERTIONS=ON'
|
2020-06-15 21:16:39 +02:00
|
|
|
- '-D LLVM_BUILD_EXAMPLES=ON'
|
2023-03-07 16:16:13 +01:00
|
|
|
- '-D COMPILER_RT_BUILD_LIBFUZZER=OFF' # Libfuzzer tests are flaky.
|
2020-03-23 09:03:24 +01:00
|
|
|
- '-D LLVM_LIT_ARGS="-v --xunit-xml-output test-results.xml"'
|
|
|
|
linux:
|
2020-08-26 12:00:50 +02:00
|
|
|
# CCACHE is enabled in script iff environment variable `CCACHE_DIR` is set
|
2020-03-23 09:03:24 +01:00
|
|
|
- '-D LLVM_ENABLE_LLD=ON'
|
2020-07-09 15:24:27 +02:00
|
|
|
- '-D CMAKE_CXX_FLAGS=-gmlt'
|
2022-01-26 18:40:18 +01:00
|
|
|
# Bolt https://github.com/google/llvm-premerge-checks/issues/364#issuecomment-1013952831.
|
2022-06-09 13:50:48 +02:00
|
|
|
- '-DBOLT_CLANG_EXE=/usr/bin/clang'
|
2023-07-19 19:47:23 +02:00
|
|
|
windows:
|
|
|
|
- '-D COMPILER_RT_BUILD_ORC=OFF' # ORC tests failing, should investigate.
|