-
-
Notifications
You must be signed in to change notification settings - Fork 509
node_crunch2: keep c++23 #9320
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
base: dev
Are you sure you want to change the base?
node_crunch2: keep c++23 #9320
Conversation
Summary of ChangesHello @luadebug, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request streamlines the build configuration for the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request updates the C++ standard requirement for the node_crunch2 package to C++23. The changes are generally correct and enforce the new standard. However, I've identified one minor issue where an error message was not updated to reflect this change, which could cause confusion. I've provided a suggestion to fix it.
|
|
||
| add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true}) | ||
|
|
||
| add_deps("spdlog", "asio", "lz4", "openssl", "taocpp-json") |
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.
For some reason android NDK failed to build on Windows OS host.
=> download https://github.com/openssl/openssl/archive/refs/tags/openssl-3.6.0.zip .. ok
checking for flags (-fPIC) ... ok
> clang.exe "-fPIC" "--sysroot=C:\Users\runneradmin\AppData\Local\.xmake\packages\n\ndk\27.3\2c4f5b0af31f46e4ac4b6db650a53855\toolchains\llvm\prebuilt\windows-x86_64\sysroot" "-isystem" "C:\Users\runneradmin\AppData\Local\.xmake\packages\n\ndk\27.3\2c4f5b0af31f46e4ac4b6db650a53855\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\include\arm-linux-androideabi" "-Qunused-arguments" "--target=armv7-none-linux-androideabi30"
checking for flags (-fPIC) ... ok
> clang.exe "-fPIC" "-Qunused-arguments" "--target=armv7-none-linux-androideabi30" "--sysroot=C:\Users\runneradmin\AppData\Local\.xmake\packages\n\ndk\27.3\2c4f5b0af31f46e4ac4b6db650a53855\toolchains\llvm\prebuilt\windows-x86_64\sysroot" "-isystem" "C:\Users\runneradmin\AppData\Local\.xmake\packages\n\ndk\27.3\2c4f5b0af31f46e4ac4b6db650a53855\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\include\arm-linux-androideabi"
checking for flags (-fPIC) ... ok
> clang++.exe "-fPIC" "--sysroot=C:\Users\runneradmin\AppData\Local\.xmake\packages\n\ndk\27.3\2c4f5b0af31f46e4ac4b6db650a53855\toolchains\llvm\prebuilt\windows-x86_64\sysroot" "-isystem" "C:\Users\runneradmin\AppData\Local\.xmake\packages\n\ndk\27.3\2c4f5b0af31f46e4ac4b6db650a53855\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\include\arm-linux-androideabi" "-Qunused-arguments" "--target=armv7-none-linux-androideabi30"
checking for flags (-fPIC) ... ok
> clang++.exe "-fPIC" "-llog" "--target=armv7-none-linux-androideabi30" "-fPIE" "-pie" "-static-libstdc++" "-lc++abi" "-llog" "--target=armv7-none-linux-androideabi30" "-fPIE" "-pie" "-static-libstdc++" "-lc++abi"
checking for flags (-fPIC) ... ok
> clang++.exe "-fPIC" "-shared" "-llog" "--target=armv7-none-linux-androideabi30" "-static-libstdc++" "-lc++abi" "-llog" "--target=armv7-none-linux-androideabi30" "-static-libstdc++" "-lc++abi"
error: @programdir\core\sandbox\modules\os.lua:273: cannot runv(./Configure linux-armv4 no-shared --libdir=lib --openssldir=C:/Users/runneradmin/AppData/Local/.xmake/packages/o/openssl3/3.6.0/64986dd8313b48d08004bda7182f6e09 --prefix=C:/Users/runneradmin/AppData/Local/.xmake/packages/o/openssl3/3.6.0/64986dd8313b48d08004bda7182f6e09 threads), Unknown Error (193)
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:1129]:
[@programdir\core\sandbox\modules\os.lua:273]:
[@programdir\core\sandbox\modules\os.lua:291]: in function 'vrunv'
[D:\a\xmake-repo\xmake-repo\packages\o\openssl3\xmake.lua:259]: in function 'script'
[...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
[...\modules\private\action\require\impl\actions\install.lua:480]:
=> install openssl3 3.6.0 .. failed
error: @programdir\core\main.lua:274: @programdir\modules\async\runjobs.lua:261: ...\modules\private\action\require\impl\actions\install.lua:592: install failed!
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:1129]:
[...\modules\private\action\require\impl\actions\install.lua:592]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[...\modules\private\action\require\impl\actions\install.lua:447]:
[...modules\private\action\require\impl\install_packages.lua:514]: in function 'job_func'
[@programdir\modules\async\runjobs.lua:441]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:1129: in function 'base/os.raiselevel'
(...tail calls...)
@programdir\core\main.lua:274: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:514: in function <@programdir\core\base\scheduler.lua:507>
#9273 (comment)