about summary refs log tree commit diff homepage
path: root/scripts/build/v-sanitizer_compiler.inc
blob: 27c1f073f41d5eb8e1fdcd633fac97bf199a9c7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Meta-package for solvers
required_variables_sanitizer_compiler=("")

# On which artifacts does STP depend on
artifact_dependency_sanitizer_compiler(){
  echo "sanitizer"
  if [[ -n ${SANITIZER_BUILD+x} ]]; then
    [[ "${SANITIZER_BUILD}" == "memory" ]] && echo "llvm"
    [[ "${SANITIZER_BUILD}" != "memory" ]] && echo "clang"
  fi
}


# Setup general variables
setup_variables_sanitizer_compiler() {
  for sanitizer in "${SANITIZERS[@]}"; do
    [[ -z "${sanitizer}" ]] && continue
    SANITIZER_CMAKE_C_COMPILER=("")
  done
}