Skip to content

Commit 72095c2

Browse files
committed
[Build] Update MACOSX_DEPLOYMENT_TARGET to macOS 11
And enable the compiler options equivalent to the Xcode options - CLANG_WARN_UNGUARDED_AVAILABILITY = yes - GCC_TREAT_WARNINGS_AS_ERRORS = yes
1 parent 98062b7 commit 72095c2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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

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

32-
export MACOSX_DEPLOYMENT_TARGET=10.10
32+
export MACOSX_DEPLOYMENT_TARGET=11
3333

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

bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ AWT_OBJECTS = swt_awt.o
3434

3535
#SWT_DEBUG = -g
3636
CFLAGS = -c -xobjective-c -Wall $(ARCHS) $(SWT_DEBUG) -DUSE_ASSEMBLER -DCOCOA -DATOMIC \
37+
-Wunguarded-availability -Werror\
3738
-I $(SWT_JAVA_HOME)/include \
3839
-I $(SWT_JAVA_HOME)/include/darwin \
3940
-I /System/Library/Frameworks/Cocoa.framework/Headers \

0 commit comments

Comments
 (0)