Skip to content

Commit

Permalink
wasm build fix for single-threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed Aug 1, 2024
1 parent a83a664 commit 05e72ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions barretenberg/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ endif()

if(ENABLE_TRACY)
add_compile_options(-DTRACY_ENABLE)
SET(TRACY_LIBS Tracy::TracyClient)
else()
SET(TRACY_LIBS)
endif()

if(ENABLE_ASAN)
Expand Down
10 changes: 5 additions & 5 deletions barretenberg/cpp/cmake/module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function(barretenberg_module MODULE_NAME)
${MODULE_NAME}
PUBLIC
${ARGN}
Tracy::TracyClient
${TRACY_LIBS}
${TBB_IMPORTED_TARGETS}
)

Expand Down Expand Up @@ -90,7 +90,7 @@ function(barretenberg_module MODULE_NAME)
target_link_libraries(
${MODULE_NAME}_test_objects
PRIVATE
Tracy::TracyClient
${TRACY_LIBS}
GTest::gtest
GTest::gtest_main
GTest::gmock_main
Expand Down Expand Up @@ -149,7 +149,7 @@ function(barretenberg_module MODULE_NAME)
GTest::gtest
GTest::gtest_main
GTest::gmock_main
Tracy::TracyClient
${TRACY_LIBS}
${TBB_IMPORTED_TARGETS}
)

Expand Down Expand Up @@ -241,7 +241,7 @@ function(barretenberg_module MODULE_NAME)
${BENCHMARK_NAME}_bench_objects
PRIVATE
benchmark::benchmark
Tracy::TracyClient
${TRACY_LIBS}
${TBB_IMPORTED_TARGETS}
)

Expand All @@ -257,7 +257,7 @@ function(barretenberg_module MODULE_NAME)
${MODULE_LINK_NAME}
${ARGN}
benchmark::benchmark
Tracy::TracyClient
${TRACY_LIBS}
${TBB_IMPORTED_TARGETS}
)
if(CHECK_CIRCUIT_STACKTRACES)
Expand Down
2 changes: 1 addition & 1 deletion barretenberg/cpp/src/barretenberg/bb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (NOT(FUZZING) AND NOT(WASM))
barretenberg
env
circuit_checker
Tracy::TracyClient
${TRACY_LIBS}
libdeflate::libdeflate_static
)
if(CHECK_CIRCUIT_STACKTRACES)
Expand Down

0 comments on commit 05e72ea

Please sign in to comment.