소스 검색

* pass suitable sysroot to aarch64-darwin compiler, if none is supplied by SYSROOTPATH

git-svn-id: trunk@49123 -
florian 4 년 전
부모
커밋
fe06cddbbf
2개의 변경된 파일257개의 추가작업 그리고 224개의 파일을 삭제
  1. 240 224
      utils/fpcm/fpcmake.inc
  2. 17 0
      utils/fpcm/fpcmake.ini

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 240 - 224
utils/fpcm/fpcmake.inc


+ 17 - 0
utils/fpcm/fpcmake.ini

@@ -1510,6 +1510,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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.