mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
473 B
CMake
10 lines
473 B
CMake
if (EMSCRIPTEN)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s EXPORTED_FUNCTIONS='[\"_compileJSON\",\"_license\",\"_version\",\"_compileJSONMulti\",\"_compileJSONCallback\",\"_compileStandard\"]' -s RESERVED_FUNCTION_POINTERS=20")
|
|
add_executable(soljson libsolc.cpp)
|
|
target_link_libraries(soljson PRIVATE solidity)
|
|
else()
|
|
add_library(libsolc libsolc.cpp)
|
|
set_target_properties(libsolc PROPERTIES OUTPUT_NAME solc)
|
|
target_link_libraries(libsolc PRIVATE solidity)
|
|
endif()
|