Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Set CppCompilerAndLinker for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed Jan 11, 2020
1 parent 2064d7d commit 88b5f93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions buildscripts/buildvars-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ if [ -z "$__ClangMajorVersion" ] || [ -z "$__ClangMinorVersion" ]; then
if [ -x "$(command -v clang)" ]; then
export __ClangMajorVersion="$(echo | clang -dM -E - | grep __clang_major__ | cut -f3 -d ' ')"
export __ClangMinorVersion="$(echo | clang -dM -E - | grep __clang_minor__ | cut -f3 -d ' ')"
if [ "${__HostOS}" != "OSX" ]; then
export CppCompilerAndLinker=clang
fi
else
export __ClangMajorVersion=3
export __ClangMinorVersion=9
Expand Down
5 changes: 5 additions & 0 deletions tests/testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ if [ "$__BuildArch" == "wasm" ]; then
export CoreRT_BuildOS=WebAssembly
fi

# Workardound for CI images without clang alias
if [ "${CoreRT_BuildOS}" == "Linux" ] && [ -z "$CppCompilerAndLinker" ] && [ ! -x "$(command -v clang)" ]; then
export CppCompilerAndLinker=clang-3.9
fi

export CoreRT_BuildArch
export CoreRT_BuildType
export CoreRT_BuildOS
Expand Down

0 comments on commit 88b5f93

Please sign in to comment.