Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jun 28, 2024
1 parent aceaa37 commit c4481a5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,21 @@ strategy:
SETUP_COMMANDS: sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix ; sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
NPROC_TOOL: nproc
BUILD_EXAMPLES: ON
Mac:
Mac amd64:
VM_IMAGE: 'macOS-12'
CMAKE_GENERATOR: Unix Makefiles
C_COMPILER: clang
CXX_COMPILER: clang++
NPROC_TOOL: sysctl -n hw.logicalcpu
BUILD_EXAMPLES: OFF
Mac arm64:
VM_IMAGE: 'macOS-12'
CMAKE_GENERATOR: Unix Makefiles
C_COMPILER: clang
CXX_COMPILER: clang++
COMPILER_FLAGS: -target arm64-apple-macos11
NPROC_TOOL: sysctl -n hw.logicalcpu
BUILD_EXAMPLES: OFF

pool:
vmImage: $(VM_IMAGE)
Expand All @@ -87,6 +95,8 @@ steps:
set -xe
export CMAKE_BUILD_PARALLEL_LEVEL="$(${NPROC_TOOL})"
echo "${CMAKE_BUILD_PARALLEL_LEVEL}"
export CFLAGS="${CFLAGS:-}${CFLAGS:= }${COMPILER_FLAGS}"
export CXXFLAGS="${CXXFLAGS:-}${CXXFLAGS:= }${COMPILER_FLAGS}"
cmake -S. -Bbuild \
-G"${CMAKE_GENERATOR}" \
-DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${CXX_COMPILER} \
Expand Down

0 comments on commit c4481a5

Please sign in to comment.