mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-29 11:13:19 +00:00
fix: solve cmake issues
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
179b191f70
commit
78e2ddc63e
@ -189,17 +189,19 @@ endif()
|
|||||||
|
|
||||||
include(cxxopts)
|
include(cxxopts)
|
||||||
|
|
||||||
|
# One TBB
|
||||||
if (NOT EMSCRIPTEN)
|
if (NOT EMSCRIPTEN)
|
||||||
include(tbb)
|
include(tbb)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# One TBB
|
if (NOT MINIMAL_BUILD)
|
||||||
if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT MINIMAL_BUILD)
|
|
||||||
include(zlib)
|
include(zlib)
|
||||||
include(cares)
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
include(protobuf)
|
include(cares)
|
||||||
# gRPC
|
include(protobuf)
|
||||||
include(grpc)
|
# gRPC
|
||||||
|
include(grpc)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
@ -170,6 +170,7 @@ if (EMSCRIPTEN)
|
|||||||
target_link_options(falco PRIVATE "-sALLOW_MEMORY_GROWTH=1")
|
target_link_options(falco PRIVATE "-sALLOW_MEMORY_GROWTH=1")
|
||||||
target_link_options(falco PRIVATE "-sDISABLE_EXCEPTION_CATCHING=0")
|
target_link_options(falco PRIVATE "-sDISABLE_EXCEPTION_CATCHING=0")
|
||||||
target_link_options(falco PRIVATE "-sMODULARIZE=1")
|
target_link_options(falco PRIVATE "-sMODULARIZE=1")
|
||||||
|
target_link_options(falco PRIVATE "-sEXPORT_ES6=1")
|
||||||
target_link_options(falco PRIVATE "-sEXPORTED_RUNTIME_METHODS=['FS', 'callMain']")
|
target_link_options(falco PRIVATE "-sEXPORTED_RUNTIME_METHODS=['FS', 'callMain']")
|
||||||
target_link_options(falco PRIVATE "-sEXPORTED_FUNCTIONS=['_main','_htons','_ntohs']")
|
target_link_options(falco PRIVATE "-sEXPORTED_FUNCTIONS=['_main','_htons','_ntohs']")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user