Add support of --trace-structs parameter for CMake (#2986)

This commit is contained in:
Martin Schmidt
2021-06-06 09:27:44 -04:00
committed by GitHub
parent 1f19e8e206
commit b0c1ac7ea2
3 changed files with 19 additions and 1 deletions
+2
View File
@@ -115,6 +115,8 @@ class CMakeEmitter final {
cmake_set_raw(*of, name + "_THREADS", cvtToStr(v3Global.opt.threads()));
*of << "# Threaded tracing output mode? 0/1/N threads (from --trace-threads)\n";
cmake_set_raw(*of, name + "_TRACE_THREADS", cvtToStr(v3Global.opt.traceThreads()));
*of << "# Struct output mode? 0/1 (from --trace-structs)\n";
cmake_set_raw(*of, name + "_TRACE_STRUCTS", cvtToStr(v3Global.opt.traceStructs()));
*of << "# VCD Tracing output mode? 0/1 (from --trace)\n";
cmake_set_raw(*of, name + "_TRACE_VCD",
(v3Global.opt.trace() && (v3Global.opt.traceFormat() == TraceFormat::VCD))