File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 53
53
git config --global --add safe.directory "$GITHUB_WORKSPACE"
54
54
mkdir build
55
55
cd build
56
- cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DSAN=ON -DUSE_LIBCXX=OFF ..
56
+ cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DSAN=ON ..
57
57
ninja
58
58
59
59
- name : " Test"
@@ -177,7 +177,8 @@ jobs:
177
177
git config --global --add safe.directory /__w/CCF/CCF
178
178
mkdir build
179
179
cd build
180
- cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON ..
180
+ # Use libc++ to enable hardening/bounds checking during tests
181
+ cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DUSE_LIBCXX=ON ..
181
182
ninja
182
183
183
184
- name : " Test"
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ endif()
113
113
option (USE_SNMALLOC "Link virtual build against snmalloc" ON )
114
114
115
115
# Default inherited from Open Enclave usage
116
- option (USE_LIBCXX "Use libc++ instead of libstdc++" ON )
116
+ option (USE_LIBCXX "Use libc++ instead of libstdc++" OFF )
117
117
118
118
enable_language (ASM)
119
119
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ set(CCF_DEB_BASE_DEPENDENCIES
26
26
)
27
27
set (CCF_DEB_DEPENDENCIES ${CCF_DEB_BASE_DEPENDENCIES} )
28
28
29
- list (APPEND CCF_DEB_DEPENDENCIES "libc++1-15;libc++abi1-15" )
29
+ if (USE_LIBCXX)
30
+ list (APPEND CCF_DEB_DEPENDENCIES "libc++1-15;libc++abi1-15" )
31
+ endif ()
30
32
31
33
list (JOIN CCF_DEB_DEPENDENCIES ", " CPACK_DEBIAN_PACKAGE_DEPENDS)
32
34
You can’t perform that action at this time.
0 commit comments