about summary refs log tree commit diff homepage
path: root/scripts/build/v-uclibc.inc
blob: e7a2f720939c8330cbaec0a56196eb653456c0b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
required_variables_uclibc=(
  "UCLIBC_VERSION"
  "LLVM_VERSION"
)

artifact_dependency_uclibc(){
  # Add llvm if needed; otherwise only use clang package
# TODO this is quite distribution specific; should be handled in a more general case
  local LLVM_VERSION_MAJOR="${LLVM_VERSION/.*/}"
  local LLVM_VERSION_MINOR="${LLVM_VERSION/*./}"
  # Check versions: no support for LLVM < 3.5
  if [[ "${LLVM_VERSION_MAJOR}" -eq 3 ]]; then
    [[ "${LLVM_VERSION_MINOR}" -lt 5 ]] && echo "llvm"
  fi

  echo "clang"
}