From d3cfc4cb5eae3a65a394af48c75c3ba271939baa Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 24 May 2024 15:20:57 -0400 Subject: [PATCH] chore(bb): better AVM disable in WASM (#6683) --- barretenberg/cpp/src/CMakeLists.txt | 60 ++++------------------------- 1 file changed, 8 insertions(+), 52 deletions(-) diff --git a/barretenberg/cpp/src/CMakeLists.txt b/barretenberg/cpp/src/CMakeLists.txt index dfdb1eb2678..98ee7ac0a24 100644 --- a/barretenberg/cpp/src/CMakeLists.txt +++ b/barretenberg/cpp/src/CMakeLists.txt @@ -102,10 +102,11 @@ include(GNUInstallDirs) # libbarretenberg + libwasi = a wasi "reactor" that implements it's own env (e.g. logstr), e.g. barretenberg.wasm. # libbarretenberg + env = a wasi "command" that expects a full wasi runtime (e.g. wasmtime), e.g. test binaries. message(STATUS "Compiling all-in-one barretenberg archive") -if(NOT WASM) + set(BARRETENBERG_TARGET_OBJECTS $ $ + $ $ $ $ @@ -149,57 +150,12 @@ set(BARRETENBERG_TARGET_OBJECTS $ $ $ - $ - $) - else() -set(BARRETENBERG_TARGET_OBJECTS - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ ) - endif() - + $) + +if(NOT WASM) + # enable AVM + list(APPEND BARRETENBERG_TARGET_OBJECTS $) +endif() add_library( barretenberg