Skip to content

Commit c357b65

Browse files
committed
genmc/build,api: Move wrappers around GenMC API to single file
GenMC has a single API that was handled in a collection of different files. This commit collects all API wrappers to Exploration.cpp. (The Setup.cpp file remains intact as it contains setting translation and setup functions.)
1 parent d659758 commit c357b65

File tree

5 files changed

+457
-495
lines changed

5 files changed

+457
-495
lines changed

src/tools/miri/genmc-sys/build.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,8 @@ fn compile_cpp_dependencies(genmc_path: &Path, always_configure: bool) {
178178
// These are all the C++ files we need to compile, which needs to be updated if more C++ files are added to Miri.
179179
// We use absolute paths since relative paths can confuse IDEs when attempting to go-to-source on a path in a compiler error.
180180
let cpp_files_base_path = Path::new("cpp/src/");
181-
let cpp_files = [
182-
"MiriInterface/EventHandling.cpp",
183-
"MiriInterface/Exploration.cpp",
184-
"MiriInterface/Mutex.cpp",
185-
"MiriInterface/Setup.cpp",
186-
"MiriInterface/ThreadManagement.cpp",
187-
]
188-
.map(|file| std::path::absolute(cpp_files_base_path.join(file)).unwrap());
181+
let cpp_files = ["MiriInterface/Exploration.cpp", "MiriInterface/Setup.cpp"]
182+
.map(|file| std::path::absolute(cpp_files_base_path.join(file)).unwrap());
189183

190184
let mut bridge = cxx_build::bridge("src/lib.rs");
191185
// FIXME(genmc,cmake): Remove once the GenMC debug setting is available in the config.h file.

src/tools/miri/genmc-sys/cpp/src/MiriInterface/EventHandling.cpp

Lines changed: 0 additions & 265 deletions
This file was deleted.

0 commit comments

Comments
 (0)