File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
examples/llama.android/llama Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ option(LLAMA_SANITIZE_ADDRESS "llama: enable address sanitizer" OFF)
63
63
option (LLAMA_SANITIZE_UNDEFINED "llama: enable undefined sanitizer" OFF )
64
64
65
65
# utils
66
- option (LLAMA_BUILD_COMMON "llama: build common utils library" ON )
66
+ option (LLAMA_BUILD_COMMON "llama: build common utils library" ${LLAMA_STANDALONE} )
67
67
68
68
# extra artifacts
69
69
option (LLAMA_BUILD_TESTS "llama: build tests" ${LLAMA_STANDALONE} )
@@ -201,12 +201,12 @@ if (LLAMA_BUILD_COMMON)
201
201
add_subdirectory (common )
202
202
endif ()
203
203
204
- if (LLAMA_BUILD_TESTS AND NOT CMAKE_JS_VERSION )
204
+ if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TESTS AND NOT CMAKE_JS_VERSION )
205
205
include (CTest )
206
206
add_subdirectory (tests )
207
207
endif ()
208
208
209
- if (LLAMA_BUILD_EXAMPLES )
209
+ if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_EXAMPLES )
210
210
add_subdirectory (examples )
211
211
add_subdirectory (pocs )
212
212
endif ()
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ android {
18
18
}
19
19
externalNativeBuild {
20
20
cmake {
21
+ arguments + = " -DLLAMA_BUILD_COMMON=ON"
21
22
arguments + = " -DCMAKE_BUILD_TYPE=Release"
22
23
cppFlags + = listOf ()
23
24
arguments + = listOf ()
You can’t perform that action at this time.
0 commit comments