-
Notifications
You must be signed in to change notification settings - Fork 36
Refactor CMakeLists.txt #164
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
Refactor CMakeLists.txt #164
Conversation
# ENV (https://github.com/emscripten-core/emscripten/commit/6d9681ad04f60b41ef6345ab06c29bbc9eeb84e0) | ||
set(EMSCRIPTEN_FEATURES "${EMSCRIPTEN_FEATURES} -s \"EXTRA_EXPORTED_RUNTIME_METHODS=[ENV']\"") | ||
endif() | ||
|
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.
These are redundant as are being addressed through macro(xeus_cpp_set_common_options target_name)
so can be totally removed from here.
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 think some flags are still missing in the macro (-fexceptions and /EHsc, I may have missed others).
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.
Hmm, having a look !
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.
Yupp those were the only ones. Should be ready now !
@vgvassilev this should be ready (P.S i made similar changes on xeus-r few days ago and I realized they would be applicable on xeus-cpp too so pretty confident :) ) |
0987f9f
to
04aa5a6
Compare
974a851
to
81de961
Compare
@@ -347,7 +332,6 @@ macro(xeus_cpp_create_target target_name linkage output_name) | |||
# Curl initialised specifically for xassist | |||
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse curl) | |||
else () | |||
# TODO : Add curl support for 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.
Removed TODO which can't be resolved as mentioned here (emscripten-forge/recipes#1332 (comment))
The PR tried adding libcurl-static on emscripten-forge but the above comment explains why the recipe can't be put to use.
Removed redundancy and adds more consistency especially for the wasm build