mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 07:41:35 +08:00
Linux: Autodetect clang-3.5 toolchain
Use clang-3.5 if found, otherwise gcc Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -39,7 +39,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Set to 1 for GCC-4.8.2 and to 0 for Clang-3.5 (Ubuntu 14.04)
|
# Set to 1 for GCC-4.8.2 and to 0 for Clang-3.5 (Ubuntu 14.04)
|
||||||
|
|
||||||
|
HAVE_CLANG35=$(shell clang-3.6 --version)
|
||||||
|
ifeq ($(HAVE_CLANG35),)
|
||||||
|
USE_GCC=1
|
||||||
|
else
|
||||||
USE_GCC=0
|
USE_GCC=0
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_GCC),1)
|
ifeq ($(USE_GCC),1)
|
||||||
# GCC Options:
|
# GCC Options:
|
||||||
|
|||||||
Reference in New Issue
Block a user