Prechádzať zdrojové kódy

* fix searching for fpc binary when specified on the cmdline

peter 21 rokov pred
rodič
commit
853152fdc2
2 zmenil súbory, kde vykonal 166 pridanie a 159 odobranie
  1. 161 158
      utils/fpcm/fpcmake.inc
  2. 5 1
      utils/fpcm/fpcmake.ini

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 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 \,/,$(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)))
 ifeq ($(FOUNDFPC),)
+FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
+ifeq ($(FOUNDFPC),)
 $(error Compiler $(FPC) not found)
 endif
+endif
 
 # For 1.1 and up we can use a single compiler call to retrieve
 # all needed information

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov