From: Florin Coras Date: Fri, 17 Jan 2025 23:10:27 +0000 (-0500) Subject: build: fix compiler ordering X-Git-Tag: v25.06-rc0~10 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=bf3e683584fb114cb3effab96b578845feb467a8;p=vpp.git build: fix compiler ordering All CI builds default to GCC instead of Clang Type: fix Fixes: ec68cec6c84e5dc9acaf7828c0118bb71fffc561 Change-Id: I63fce7feda743d05f17d0710fcf25b09674fdbfb Signed-off-by: Florin Coras --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 967c7772ff3..de1ee713d5c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,6 +13,12 @@ cmake_minimum_required(VERSION 3.13) +if (DEFINED VPP_PLATFORM_C_COMPILER_NAMES) + set(CMAKE_C_COMPILER_NAMES ${VPP_PLATFORM_C_COMPILER_NAME}) +else() + set(CMAKE_C_COMPILER_NAMES clang gcc cc) +endif() + project(vpp C) if(NOT DEFINED CMAKE_INSTALL_LIBDIR AND EXISTS "/etc/debian_version")