Skip to content

Commit d8b38b0

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 52b0611 commit d8b38b0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

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 \
3738
-I $(SWT_JAVA_HOME)/include \
3839
-I $(SWT_JAVA_HOME)/include/darwin \
3940
-I /System/Library/Frameworks/Cocoa.framework/Headers \

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,8 @@ protected void create (DeviceData data) {
950950
}
951951

952952
void createDisplay (DeviceData data) {
953-
if (OS.VERSION < OS.VERSION (10, 10, 0)) {
954-
System.out.println ("***WARNING: SWT requires MacOS X version 10.10 or greater"); //$NON-NLS-1$
953+
if (OS.VERSION < OS.VERSION (11, 0, 0)) {
954+
System.out.println ("***WARNING: SWT requires macOS version 11 or greater"); //$NON-NLS-1$
955955
error(SWT.ERROR_NOT_IMPLEMENTED);
956956
}
957957

@@ -2522,10 +2522,10 @@ public void run() {
25222522

25232523
/**
25242524
* Checks if the native item height should be enforced as a minimum (which is true by default).
2525-
*
2525+
*
25262526
* Newer version of macOS may use a default item height in Table, Tree and List
25272527
* controls that is larger than what is traditionally expected.
2528-
*
2528+
*
25292529
* Enforcing the default height as a minimum may break existing assumptions and
25302530
* render UI elements with a padding that may be considered too large.
25312531
*/

0 commit comments

Comments
 (0)