mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +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)
|
||||
|
||||
HAVE_CLANG35=$(shell clang-3.6 --version)
|
||||
ifeq ($(HAVE_CLANG35),)
|
||||
USE_GCC=1
|
||||
else
|
||||
USE_GCC=0
|
||||
endif
|
||||
|
||||
ifeq ($(USE_GCC),1)
|
||||
# GCC Options:
|
||||
|
||||
Reference in New Issue
Block a user