2015-09-16 10:20 UTC+0200 Tamas TEVESZ (ice extreme.hu)

* config/global.mk
    + Allow autodetection of Clang as system compiler on FreeBSD 10+
    ; Untested on, but should not affect, other BSDs or FreeBSD < 10.
This commit is contained in:
Tamas TEVESZ
2015-09-16 10:24:00 +02:00
parent 964c5df36f
commit aaf15b18f1
2 changed files with 18 additions and 1 deletions

View File

@@ -874,7 +874,18 @@ ifeq ($(HB_COMPILER),)
endif
endif
else
ifneq ($(filter $(HB_PLATFORM),aix hpux bsd beos qnx cygwin),)
ifeq ($(HB_PLATFORM),bsd)
HB_COMP_PATH := $(call find_in_path_par,clang,/usr/bin)
ifneq ($(HB_COMP_PATH),)
HB_COMPILER := clang
else
HB_COMP_PATH := $(call find_in_path_par,gcc,/usr/bin)
ifneq ($(HB_COMP_PATH),)
HB_COMPILER := gcc
endif
endif
else
ifneq ($(filter $(HB_PLATFORM),aix hpux beos qnx cygwin),)
HB_COMP_PATH := $(call find_in_path,gcc)
ifneq ($(HB_COMP_PATH),)
HB_COMPILER := gcc
@@ -961,6 +972,7 @@ ifeq ($(HB_COMPILER),)
endif
endif
endif
endif
# autodetect watcom platform by looking at the header path config
ifeq ($(HB_COMPILER),watcom)