mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #73 from chriseth/emscripten
Changes required to compile on emscripten target.
This commit is contained in:
+8
-2
@@ -17,5 +17,11 @@ else()
|
||||
eth_install_executable(${EXECUTABLE})
|
||||
endif()
|
||||
|
||||
add_library(soljson jsonCompiler.cpp ${HEADERS})
|
||||
target_link_libraries(soljson solidity)
|
||||
if (EMSCRIPTEN)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s EXPORTED_FUNCTIONS='[\"_compileJSON\",\"_version\"]'")
|
||||
add_executable(soljson jsonCompiler.cpp ${HEADERS})
|
||||
eth_use(soljson REQUIRED Solidity)
|
||||
else()
|
||||
add_library(soljson jsonCompiler.cpp ${HEADERS})
|
||||
target_link_libraries(soljson solidity)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user