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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user