소스 검색

* fix searching for fpc binary when specified on the cmdline

peter 21 년 전
부모
커밋
853152fdc2
2개의 변경된 파일166개의 추가작업 그리고 159개의 파일을 삭제
  1. 161 158
      utils/fpcm/fpcmake.inc
  2. 5 1
      utils/fpcm/fpcmake.ini

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


+ 5 - 1
utils/fpcm/fpcmake.ini

@@ -176,11 +176,15 @@ endif
 override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
 override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
 override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
 override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
 
 
-# Try to find the binary, if not found give an error
+# Try to find the binary direct first, otherwise in the path,
+# if not found give an error
 FOUNDFPC:=$(strip $(wildcard $(FPC)))
 FOUNDFPC:=$(strip $(wildcard $(FPC)))
 ifeq ($(FOUNDFPC),)
 ifeq ($(FOUNDFPC),)
+FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
+ifeq ($(FOUNDFPC),)
 $(error Compiler $(FPC) not found)
 $(error Compiler $(FPC) not found)
 endif
 endif
+endif
 
 
 # For 1.1 and up we can use a single compiler call to retrieve
 # For 1.1 and up we can use a single compiler call to retrieve
 # all needed information
 # all needed information

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