File tree Expand file tree Collapse file tree 11 files changed +55
-17
lines changed Expand file tree Collapse file tree 11 files changed +55
-17
lines changed Original file line number Diff line number Diff line change 20
20
paths :
21
21
- ' .github/workflows/**'
22
22
- ' CMakeLists.txt'
23
+ - ' CMakeModules/**'
23
24
- ' doc/**'
24
25
- ' libs/**'
25
26
- ' src/libAtomVM/**'
33
34
paths :
34
35
- ' .github/workflows/**'
35
36
- ' CMakeLists.txt'
37
+ - ' CMakeModules/**'
36
38
- ' doc/**'
37
39
- ' libs/**'
38
40
- ' src/libAtomVM/**'
Original file line number Diff line number Diff line change 11
11
paths :
12
12
- ' .github/workflows/**'
13
13
- ' CMakeLists.txt'
14
+ - ' CMakeModules/**'
14
15
- ' src/**'
15
16
- ' tests/**'
16
17
- ' **/*.erl'
17
18
pull_request :
18
19
paths :
19
20
- ' .github/workflows/**'
20
21
- ' CMakeLists.txt'
22
+ - ' CMakeModules/**'
21
23
- ' src/**'
22
24
- ' tests/**'
23
25
- ' **/*.erl'
Original file line number Diff line number Diff line change 11
11
paths :
12
12
- ' .github/workflows/esp32-build.yaml'
13
13
- ' CMakeLists.txt'
14
+ - ' CMakeModules/**'
14
15
- ' libs/**'
15
16
- ' src/platforms/esp32/**'
16
17
- ' src/platforms/esp32/**/**'
19
20
pull_request :
20
21
paths :
21
22
- ' .github/workflows/esp32-build.yaml'
23
+ - ' CMakeLists.txt'
24
+ - ' CMakeModules/**'
25
+ - ' libs/**'
22
26
- ' src/platforms/esp32/**'
23
27
- ' src/platforms/esp32/**/**'
24
28
- ' src/libAtomVM/**'
29
+ - ' tools/packbeam/**'
25
30
26
31
concurrency :
27
32
group : ${{ github.workflow }}-${{ github.ref != 'refs/heads/main' && github.ref || github.run_id }}
Original file line number Diff line number Diff line change 11
11
paths :
12
12
- ' .github/workflows/esp32-mkimage.yaml'
13
13
- ' CMakeLists.txt'
14
+ - ' CMakeModules/**'
14
15
- ' libs/**'
15
16
- ' src/platforms/esp32/**'
16
17
- ' src/platforms/esp32/**/**'
19
20
pull_request :
20
21
paths :
21
22
- ' .github/workflows/esp32-mkimage.yaml'
23
+ - ' CMakeLists.txt'
24
+ - ' CMakeModules/**'
25
+ - ' libs/**'
22
26
- ' src/platforms/esp32/**'
23
27
- ' src/platforms/esp32/**/**'
24
28
- ' src/libAtomVM/**'
29
+ - ' tools/packbeam/**'
25
30
26
31
permissions :
27
32
contents : write
Original file line number Diff line number Diff line change 12
12
paths :
13
13
- " .github/workflows/esp32-simtest.yaml"
14
14
- " CMakeLists.txt"
15
+ - ' CMakeModules/**'
15
16
- " libs/**"
16
17
- " src/platforms/esp32/**"
17
18
- " src/platforms/esp32/**/**"
20
21
pull_request :
21
22
paths :
22
23
- " .github/workflows/esp32-simtest.yaml"
24
+ - " CMakeLists.txt"
25
+ - ' CMakeModules/**'
26
+ - " libs/**"
23
27
- " src/platforms/esp32/**"
24
28
- " src/platforms/esp32/**/**"
25
29
- " src/libAtomVM/**"
30
+ - " tools/packbeam/**"
26
31
27
32
concurrency :
28
33
group : ${{ github.workflow }}-${{ github.ref != 'refs/heads/main' && github.ref || github.run_id }}
Original file line number Diff line number Diff line change 11
11
paths :
12
12
- ' .github/workflows/pico-build.yaml'
13
13
- ' CMakeLists.txt'
14
+ - ' CMakeModules/**'
14
15
- ' libs/**'
15
16
- ' src/platforms/rp2/**'
16
17
- ' src/platforms/esp32/test/main/test_erl_sources/test_crypto.erl'
19
20
paths :
20
21
- ' .github/workflows/pico-build.yaml'
21
22
- ' CMakeLists.txt'
23
+ - ' CMakeModules/**'
22
24
- ' libs/**'
23
25
- ' src/platforms/rp2/**'
24
26
- ' src/platforms/esp32/test/main/test_erl_sources/test_crypto.erl'
Original file line number Diff line number Diff line change 20
20
paths :
21
21
- ' .github/workflows/publish-docs.yaml'
22
22
- ' CMakeLists.txt'
23
+ - ' CMakeModules/**'
23
24
- ' doc/**'
24
25
- ' libs/**'
25
26
- ' src/libAtomVM/**'
Original file line number Diff line number Diff line change 11
11
paths :
12
12
- ' .github/workflows/stm32-build.yaml'
13
13
- ' CMakeLists.txt'
14
+ - ' CMakeModules/**'
14
15
- ' src/platforms/stm32/**'
15
16
- ' src/libAtomVM/**'
16
17
pull_request :
17
18
paths :
18
19
- ' .github/workflows/stm32-build.yaml'
19
20
- ' CMakeLists.txt'
21
+ - ' CMakeModules/**'
20
22
- ' src/platforms/stm32/**'
21
23
- ' src/libAtomVM/**'
22
24
Original file line number Diff line number Diff line change 11
11
paths :
12
12
- ' .github/workflows/wasm-build.yaml'
13
13
- ' CMakeLists.txt'
14
+ - ' CMakeModules/**'
14
15
- ' libs/**'
15
16
- ' src/platforms/emscripten/**'
16
17
- ' src/libAtomVM/**'
17
18
pull_request :
18
19
paths :
19
20
- ' .github/workflows/wasm-build.yaml'
20
21
- ' CMakeLists.txt'
22
+ - ' CMakeModules/**'
21
23
- ' libs/**'
22
24
- ' src/platforms/emscripten/**'
23
25
- ' src/libAtomVM/**'
Original file line number Diff line number Diff line change @@ -22,10 +22,37 @@ include(FetchContent)
22
22
23
23
FetchContent_Declare (
24
24
mbedtls
25
- PATCH_COMMAND git apply "${CMAKE_CURRENT_LIST_DIR} /mbedtls.patch"
26
25
GIT_REPOSITORY http://github.com/mbed-TLS/mbedtls.git
27
26
GIT_TAG v3.6.3.1
28
27
GIT_SHALLOW 1
29
28
)
30
29
31
- FetchContent_MakeAvailable (mbedtls )
30
+ include (CheckCompilerFlag )
31
+ check_compiler_flag (C -Wno-unterminated-string-initialization compiler_supports_unterminated_string_initialization )
32
+
33
+ if (${compiler_supports_unterminated_string_initialization} )
34
+ get_property (
35
+ compile_options
36
+ DIRECTORY
37
+ PROPERTY COMPILE_OPTIONS
38
+ )
39
+
40
+ set_property (
41
+ DIRECTORY
42
+ APPEND
43
+ PROPERTY COMPILE_OPTIONS -Wno-unterminated-string-initialization
44
+ )
45
+
46
+ FetchContent_MakeAvailable (mbedtls )
47
+
48
+ set_property (
49
+ DIRECTORY
50
+ PROPERTY COMPILE_OPTIONS ${compile_options}
51
+ )
52
+
53
+ unset (compile_options )
54
+ else ()
55
+ FetchContent_MakeAvailable (mbedtls )
56
+ endif ()
57
+
58
+ unset (compiler_supports_unterminated_string_initialization )
You can’t perform that action at this time.
0 commit comments