File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
- runs-on : [self-hosted, linux, ARM64 ]
10
+ runs-on : [ubuntu-24.04 ]
11
11
strategy :
12
12
matrix :
13
- container : ["ubuntu-dev:22 "]
13
+ container : ["ubuntu-dev:24 "]
14
14
build-type : [Debug]
15
- compiler : [{ cxx: g++, c: gcc }]
16
- cxx_flags : ["-Werror"]
15
+ compiler : [{ cxx: clang++, c: clang }]
16
+ # TODO bring it back when warnings on clang are fixed
17
+ # cxx_flags: ["-Werror"]
17
18
timeout-minutes : 90
18
19
env :
19
20
SCCACHE_GHA_ENABLED : " true"
59
60
60
61
- name : Configure & Build
61
62
run : |
63
+ apt -y update
64
+ apt -y upgrade
65
+ apt install -y clang
66
+ which clang
62
67
echo "ulimit is"
63
68
ulimit -s
64
69
echo "-----------------------------"
76
81
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
77
82
-DCMAKE_CXX_FLAGS="${{matrix.cxx_flags}}" \
78
83
-DWITH_ASAN=ON \
79
- -DWITH_USAN=ON
84
+ -DWITH_USAN=ON \
85
+ -DCMAKE_C_FLAGS=-Wno-error=unused-command-line-argument \
86
+ -DCMAKE_CXX_FLAGS=-Wno-error=unused-command-line-argument
87
+ # https://maskray.me/blog/2023-08-25-clang-wunused-command-line-argument (search for compiler-rt)
80
88
81
89
ninja src/all
82
90
Original file line number Diff line number Diff line change @@ -40,16 +40,24 @@ option(DF_USE_SSL "Provide support for SSL connections" ON)
40
40
41
41
find_package (OpenSSL)
42
42
43
+ SET (SANITIZERS OFF )
44
+
43
45
option (WITH_ASAN "Enable -fsanitize=address" OFF )
44
46
if (SUPPORT_ASAN AND WITH_ASAN)
45
47
message (STATUS "address sanitizer enabled" )
46
48
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address" )
49
+ set (SANITIZERS ON )
47
50
endif ()
48
51
49
52
option (WITH_USAN "Enable -fsanitize=undefined" OFF )
50
53
if (SUPPORT_USAN AND WITH_USAN)
51
54
message (STATUS "ub sanitizer enabled" )
52
55
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=undefined" )
56
+ set (SANITIZERS ON )
57
+ endif ()
58
+
59
+ if (SANITIZERS)
60
+ set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -rtlib=compiler-rt" )
53
61
endif ()
54
62
55
63
include (third_party)
You can’t perform that action at this time.
0 commit comments