mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 19:05:54 +02:00
* pass suitable sysroot to aarch64-darwin compiler, if none is supplied by SYSROOTPATH
(cherry picked from commit fe06cddbbf
)
# Conflicts:
# utils/fpcm/fpcmake.inc
This commit is contained in:
parent
7ceb3854c5
commit
cc53864fc8
File diff suppressed because it is too large
Load Diff
@ -1416,6 +1416,23 @@ override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef SYSROOTPATH
|
||||
override FPCOPT+=-XR$(SYSROOTPATH)
|
||||
else
|
||||
# if we are compiling natively on aarch64-darwin and if -/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk exists,
|
||||
# add it to the compiler command line
|
||||
ifeq ($(OS_TARGET),$(OS_SOURCE))
|
||||
ifneq ($(findstring $(OS_TARGET),darwin),)
|
||||
# so far the only tested one
|
||||
ifneq ($(findstring $(CPU_TARGET),aarch64),)
|
||||
ifneq ($(wildcard /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk),)
|
||||
override FPCOPT+=-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef CREATESHARED
|
||||
override FPCOPT+=-Cg
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user