Skip to content

Commit cb203b0

Browse files
committed
[DO NOT SUBMIT] Experiments with Mac compile target
1 parent 98062b7 commit cb203b0

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ def runOnNativeBuildAgent(String platform, Closure body) {
2626
case 'gtk4.linux.x86_64':
2727
dockerImage = 'eclipse/platformreleng-debian-swtnativebuild:12'
2828
break
29+
case 'cocoa.macosx.aarch64':
30+
agentLabel = 'nc1ht-macos11-arm64'
31+
break
32+
case 'cocoa.macosx.x86_64':
33+
agentLabel = 'b9h15-macos11-x86_64'
34+
break
2935
}
3036
if (dockerImage != null) {
3137
podTemplate(inheritFrom: 'basic' /* inherit general configuration */, containers: [
@@ -233,7 +239,16 @@ pipeline {
233239
sh build.sh clean
234240
sh build.sh -gtk4 checklibs install-pi-only
235241
elif [[ ${PLATFORM} == cocoa.macosx.* ]]; then
242+
xcode-select --print-path
243+
xcode-select --version
244+
softwareupdate --list
245+
softwareupdate --history
246+
xcodebuild -version
247+
xcodebuild -showsdks
236248
sh build.sh install
249+
for f in libs/*; do
250+
vtool -show ${f}
251+
done
237252
else
238253
echo "Unexpected build platform ${PLATFORM}"
239254
exit 1

bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ elif [ "x${MODEL}" = "xarm64" ] || [ "x${MODEL}" = "xaarch64" ]; then
2929
fi
3030
fi
3131

32+
#TODO: increment this?
3233
export MACOSX_DEPLOYMENT_TARGET=10.10
34+
#export CLANG_ENABLE_OBJC_WEAK = YES
35+
#export CLANG_WARN_UNGUARDED_AVAILABILITY = YES
36+
#export GCC_TREAT_WARNINGS_AS_ERRORS = YES
3337

3438
make -f make_macosx.mak $1 $2 $3 $4 $5 $6 $7 $8 $9

0 commit comments

Comments
 (0)