Skip to content

Commit e8e2673

Browse files
committed
Merge pull request #743 from pguyot/w32/build-and-install-plt
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. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 531ebb3 + 4e939cb commit e8e2673

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)