Skip to content

Commit 547c97f

Browse files
authored
Remove unused LVI_MITIGATIONS flag (#6751)
1 parent 8798151 commit 547c97f

File tree

7 files changed

+12
-26
lines changed

7 files changed

+12
-26
lines changed

.azure-pipelines-templates/daily-matrix.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ parameters:
2727
cmake_args: "-DCOMPILE_TARGET=sgx"
2828
cmake_env: ""
2929
SNPCC:
30-
cmake_args: "-DCOMPILE_TARGET=snp -DLVI_MITIGATIONS=OFF -DLONG_TESTS=OFF"
30+
cmake_args: "-DCOMPILE_TARGET=snp -DLONG_TESTS=OFF"
3131
cmake_env: "CC=`which clang-15` CXX=`which clang++-15`"
3232
debug:
33-
cmake_args: "-DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF"
33+
cmake_args: "-DCMAKE_BUILD_TYPE=Debug"
3434
cmake_env: ""
3535
ASAN:
3636
cmake_args: "-DSAN=ON"
@@ -39,7 +39,7 @@ parameters:
3939
cmake_args: "-DTSAN=ON -DWORKER_THREADS=2"
4040
cmake_env: ""
4141
unsafe:
42-
cmake_args: "-DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
42+
cmake_args: "-DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
4343
cmake_env: ""
4444

4545
jobs:

.azure-pipelines-templates/release-matrix.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ parameters:
3030
cmake_env: ""
3131
ninja_targets: "default"
3232
SNPCC:
33-
cmake_args: "-DCOMPILE_TARGET=snp -DLVI_MITIGATIONS=OFF -DLONG_TESTS=OFF"
33+
cmake_args: "-DCOMPILE_TARGET=snp -DLONG_TESTS=OFF"
3434
cmake_env: "CC=`which clang-15` CXX=`which clang++-15`"
3535
ninja_targets: "default"
3636
release:
3737
cmake_args: "-DCLIENT_PROTOCOLS_TEST=ON -DLONG_TESTS=ON"
3838
cmake_env: ""
3939
ninja_targets: "default"
4040
unsafe:
41-
cmake_args: "-DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
41+
cmake_args: "-DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
4242
cmake_env: ""
4343
ninja_targets: "default"
4444

.github/workflows/ci-verification.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
git config --global --add safe.directory /__w/CCF/CCF
176176
mkdir build
177177
cd build
178-
cmake -L -GNinja .. -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON -DCOMPILE_TARGET=virtual -DCCF_RAFT_TRACING=ON
178+
cmake -L -GNinja .. -DCMAKE_BUILD_TYPE=Debug -DVERBOSE_LOGGING=ON -DCOMPILE_TARGET=virtual -DCCF_RAFT_TRACING=ON
179179
ninja raft_driver
180180
shell: bash
181181

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
git config --global --add safe.directory /__w/CCF/CCF
5858
mkdir build
5959
cd build
60-
cmake -GNinja -DCOMPILE_TARGET=${{ matrix.platform.name }} -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF ..
60+
cmake -GNinja -DCOMPILE_TARGET=${{ matrix.platform.name }} -DCMAKE_BUILD_TYPE=Debug ..
6161
ninja
6262
shell: bash
6363

@@ -132,7 +132,7 @@ jobs:
132132
git config --global --add safe.directory /__w/CCF/CCF
133133
mkdir build
134134
cd build
135-
CC=`which clang` CXX=`which clang++` cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DUSE_LIBCXX=OFF ..
135+
CC=`which clang` CXX=`which clang++` cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DUSE_LIBCXX=OFF ..
136136
ninja
137137
shell: bash
138138

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
set -ex
5757
mkdir build
5858
cd build
59-
cmake -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=OFF -DLVI_MITIGATIONS=OFF ..
59+
cmake -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=OFF ..
6060
name: Run CMake
6161
6262
- run: |

.github/workflows/long-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
git config --global --add safe.directory "$GITHUB_WORKSPACE"
5454
mkdir build
5555
cd build
56-
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DLVI_MITIGATIONS=OFF -DSAN=ON ..
56+
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DSAN=ON ..
5757
ninja
5858
5959
- name: "Test"
@@ -91,7 +91,7 @@ jobs:
9191
git config --global --add safe.directory /__w/CCF/CCF
9292
mkdir build
9393
cd build
94-
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DLVI_MITIGATIONS=OFF -DTSAN=ON -DWORKER_THREADS=2 ..
94+
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DTSAN=ON -DWORKER_THREADS=2 ..
9595
ninja
9696
9797
- name: "Test"
@@ -129,7 +129,7 @@ jobs:
129129
git config --global --add safe.directory /__w/CCF/CCF
130130
mkdir build
131131
cd build
132-
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DLVI_MITIGATIONS=OFF -DWORKER_THREADS=2 ..
132+
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLONG_TESTS=ON -DWORKER_THREADS=2 ..
133133
ninja
134134
135135
- name: "Test"

CMakeLists.txt

-14
Original file line numberDiff line numberDiff line change
@@ -132,20 +132,6 @@ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/tools.cmake DESTINATION cmake)
132132
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/ccf_app.cmake)
133133
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ccf_app.cmake DESTINATION cmake)
134134

135-
if(SAN AND LVI_MITIGATIONS)
136-
message(
137-
FATAL_ERROR
138-
"Building with both SAN and LVI mitigations is unsafe and deadlocks - choose one"
139-
)
140-
endif()
141-
142-
if(TSAN AND LVI_MITIGATIONS)
143-
message(
144-
FATAL_ERROR
145-
"Building with both TSAN and LVI mitigations is unsafe and deadlocks - choose one"
146-
)
147-
endif()
148-
149135
# Copy and install CCF utilities
150136
set(CCF_UTILITIES keygenerator.sh submit_recovery_share.sh verify_quote.sh)
151137
foreach(UTILITY ${CCF_UTILITIES})

0 commit comments

Comments
 (0)