Skip to content

Commit 4e939cb

Browse files
authored
Build and install plt
Building plt also checks that current erlang libraries are correct. The plt is installed but depends on some installed Erlang/OTP beams. Signed-off-by: Paul Guyot <[email protected]>
1 parent b203ce1 commit 4e939cb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

libs/CMakeLists.txt

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

43+
add_custom_command(
44+
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/atomvmlib.plt
45+
DEPENDS atomvmlib
46+
COMMAND dialyzer --build_plt --output_plt ${CMAKE_CURRENT_BINARY_DIR}/atomvmlib.plt
47+
-r ${CMAKE_CURRENT_BINARY_DIR}/estdlib/src/beams
48+
-r ${CMAKE_CURRENT_BINARY_DIR}/eavmlib/src/beams
49+
-r ${CMAKE_CURRENT_BINARY_DIR}/alisp/src/beams
50+
)
51+
52+
add_custom_target(atomvmlib_plt ALL
53+
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/atomvmlib.plt
54+
)
55+
4356
install(
4457
FILES ${CMAKE_CURRENT_BINARY_DIR}/atomvmlib.avm
4558
DESTINATION lib/atomvm

0 commit comments

Comments
 (0)