Skip to content

Commit 393ea61

Browse files
committed
Add option for disabling dialyzer
Add RUN_DIALYZER option (default to ON). Signed-off-by: Davide Bettio <[email protected]>
1 parent 34e323b commit 393ea61

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ option(AVM_VERBOSE_ABORT "Print module and line number on VM abort" OFF)
3333
option(AVM_RELEASE "Build an AtomVM release" OFF)
3434
option(AVM_CREATE_STACKTRACES "Create stacktraces" ON)
3535
option(COVERAGE "Build for code coverage" OFF)
36+
option(RUN_DIALYZER "Run dialyzer on BEAM modules" ON)
3637

3738
if((${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") OR
3839
(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") OR

libs/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ else()
4040
pack_lib(atomvmlib eavmlib estdlib alisp)
4141
endif()
4242

43-
if (Dialyzer_FOUND)
43+
if (Dialyzer_FOUND AND RUN_DIALYZER)
4444
add_custom_command(
4545
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/atomvmlib.plt
4646
DEPENDS atomvmlib
@@ -54,7 +54,7 @@ if (Dialyzer_FOUND)
5454
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/atomvmlib.plt
5555
)
5656
else()
57-
message("Unable to find dialyzer -- skipping PLT build")
57+
message("Dialyzer is not enabled -- skipping PLT build")
5858
endif()
5959

6060
install(

0 commit comments

Comments
 (0)