Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
32b003c
)
build: fix compiler ordering
00/42200/2
author
Florin Coras
<
[email protected]
>
Fri, 17 Jan 2025 23:10:27 +0000
(18:10 -0500)
committer
Dave Wallace
<
[email protected]
>
Mon, 20 Jan 2025 22:37:02 +0000
(22:37 +0000)
All CI builds default to GCC instead of Clang
Type: fix
Fixes:
ec68cec6c84e5dc9acaf7828c0118bb71fffc561
Change-Id: I63fce7feda743d05f17d0710fcf25b09674fdbfb
Signed-off-by: Florin Coras <
[email protected]
>
src/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index
967c777
..
de1ee71
100644
(file)
--- 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")