File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set(GLYPH_OPT "")
9
9
10
10
# Building from App
11
11
if (NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR} )
12
- list (APPEND GLYPH_PATHS "/app/ ${BUILD_PATH} /glyphs /*" )
12
+ list (APPEND GLYPH_PATHS "${APP_GLYPH_DIR} /*" )
13
13
endif ()
14
14
15
15
if (TARGET_DEVICE STREQUAL "flex" OR TARGET_DEVICE STREQUAL "stax" )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ FUZZING_PATH="$(pwd)"
17
17
NUM_CPUS=1
18
18
FUZZER=" "
19
19
FUZZERNAME=" "
20
- BUILD_PATH =" $( cd /app && ledger-manifest -ob ledger_app.toml) "
20
+ APP_BUILD_PATH =" $( cd /app && ledger-manifest -ob ledger_app.toml) "
21
21
RED=" \033[0;31m"
22
22
GREEN=" \033[0;32m"
23
23
BLUE=" \033[0;34m"
@@ -80,7 +80,7 @@ function gen_macros() {
80
80
apt-get update && apt-get install -y bear
81
81
fi
82
82
83
- cd " /app/$BUILD_PATH " || exit 1
83
+ cd " /app/$APP_BUILD_PATH " || exit 1
84
84
echo -e " ${BLUE} Generating macros...${NC} "
85
85
# $FLEX_SDK and $STAX_SDK are set in the docker image
86
86
case " $TARGET_DEVICE " in
@@ -124,7 +124,11 @@ function build() {
124
124
fi
125
125
126
126
echo -e " ${BLUE} Building the project...${NC} "
127
- cmake -S . -B build -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug -DSANITIZER=" $SANITIZER " -DTARGET_DEVICE=" $TARGET_DEVICE " -DBUILD_PATH=" $BUILD_PATH " -DBOLOS_SDK=" $BOLOS_SDK " -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=On
127
+ if [ ! -f " $FUZZING_PATH /local_run.sh" ]; then
128
+ cmake -S . -B build -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug -DSANITIZER=" $SANITIZER " -DTARGET_DEVICE=" $TARGET_DEVICE " -DAPP_GLYPH_DIR=" /app/${APP_BUILD_PATH} /glyphs/" -DBOLOS_SDK=" $BOLOS_SDK " -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=On
129
+ else
130
+ cmake -S . -B build -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug -DSANITIZER=" $SANITIZER " -DTARGET_DEVICE=" $TARGET_DEVICE " -DBOLOS_SDK=" $BOLOS_SDK " -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=On
131
+ fi
128
132
cmake --build build
129
133
}
130
134
You can’t perform that action at this time.
0 commit comments