File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 40
40
- job : build_macos
41
41
displayName : macOS
42
42
pool :
43
- vmImage : ' macos-12 '
43
+ vmImage : ' macos-latest '
44
44
steps :
45
45
- checkout : self
46
46
submodules : true
Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ if [ "$(otool -L "src/${BINARY_NAME}" | tail -n +2 | grep -v -E "${ALLOWED_DL_LI
62
62
exit 1
63
63
fi
64
64
65
+ if ! vtool -show " src/${BINARY_NAME} " | tee | grep minos | \
66
+ awk -v version=" ${MACOSX_DEPLOYMENT_TARGET} " ' $2 > version { exit 1 }'
67
+ then
68
+ echo " macOS deployment target was not set correctly"
69
+ exit 1
70
+ fi
71
+
65
72
export MACOSX_DEPLOYMENT_TARGET=11.0
66
73
67
74
mkdir -p " $BUILD /build_libomp/openmp-${OMPVERSION} .src/build-arm64" && cd " $BUILD /build_libomp/openmp-${OMPVERSION} .src/build-arm64"
@@ -94,6 +101,13 @@ if [ "$(otool -L "src/${BINARY_NAME}" | tail -n +2 | grep -v -E "${ALLOWED_DL_LI
94
101
exit 1
95
102
fi
96
103
104
+ if ! vtool -show " src/${BINARY_NAME} " | tee | grep minos | \
105
+ awk -v version=" ${MACOSX_DEPLOYMENT_TARGET} " ' $2 > version { exit 1 }'
106
+ then
107
+ echo " macOS deployment target was not set correctly"
108
+ exit 1
109
+ fi
110
+
97
111
lipo \
98
112
-create \
99
113
-arch x86_64 " $BUILD /build_avx2/src/${BINARY_NAME} " \
You can’t perform that action at this time.
0 commit comments