Skip to content

Commit

Permalink
Build with -mmacosx-version-min=10.13
Browse files Browse the repository at this point in the history
This allows to build a binary on macOS 11 or newer, but to be able to
run it on a macOS 10.13 machine. This causes a lot of warnings to be
printed for methods which are only available in macOS 11 or newer, the
following commits will handle these warnings.
  • Loading branch information
cfergeau committed Sep 23, 2022
1 parent d9343af commit eea2452
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion audio.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion bootloader.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion bootloader_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization_arm64.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion console.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion entropy.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion graphics_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization_arm64.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion keyboard.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion memory_balloon.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion network.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion platform.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion platform_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization_arm64.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion pointing_device.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion shared_folder.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion socket.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion storage.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion virtualization.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization -framework Cocoa
# include "virtualization.h"
*/
Expand Down
2 changes: 1 addition & 1 deletion virtualization_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package vz

/*
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=11.0
#cgo darwin CFLAGS: -x objective-c -fno-objc-arc -mmacosx-version-min=10.13
#cgo darwin LDFLAGS: -lobjc -framework Foundation -framework Virtualization
# include "virtualization.h"
# include "virtualization_arm64.h"
Expand Down

0 comments on commit eea2452

Please sign in to comment.