mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:09:27 +02:00
* fix searching for fpc binary when specified on the cmdline
This commit is contained in:
parent
1da1e21997
commit
853152fdc2
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user