-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] fixes to build for WASM #76
base: master
Are you sure you want to change the base?
Conversation
endif() | ||
else() | ||
set(Python_INCLUDE_DIRS | ||
"${CMAKE_PREFIX_PATH}/include/python3.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't want Python_INCLUDE_DIRS
to be set for a particular python version. The ci has version 3.11 for non wasm jobs, but we will want cppyy to support more than just that version. I plan to make this as part of the ci soon. Also given wasm support is constantly change, its probably best to look at using the latest python version for this work.
|
||
if (NOT Python_Development_FOUND) | ||
message(FATAL_ERROR "Python development package not found and python component required") | ||
if(NOT EMSCRIPTEN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather have if (emscripten) then else as that is more clear
@@ -28,6 +40,12 @@ file (GLOB cppyy_src src/*.cxx) | |||
|
|||
add_library(cppyy SHARED ${cppyy_src}) | |||
|
|||
if (EMSCRIPTEN) | |||
target_link_options(cppyy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer set_target_properties and to use the link_flags option, and we can drop the CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-s SIDE_MODULE=1")
and set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-s SIDE_MODULE=1")
and put as compile_flags for the cppyy target.
No description provided.