We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
QJS_
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
A best-practice recommendation for CMake projects - especially those used as libraries - is to prefix option names with the project prefix / name. (Example: https://discourse.cmake.org/t/best-practices-for-option-naming/2039 )
The CMakeLists.txt currently exposes various build options that would benefit from this:
xoption(BUILD_EXAMPLES "Build examples" OFF) xoption(BUILD_STATIC_QJS_EXE "Build a static qjs executable" OFF) xoption(BUILD_CLI_WITH_MIMALLOC "Build the qjs executable with mimalloc" OFF) xoption(BUILD_CLI_WITH_STATIC_MIMALLOC "Build the qjs executable with mimalloc (statically linked)" OFF) xoption(CONFIG_ASAN "Enable AddressSanitizer (ASan)" OFF) xoption(CONFIG_MSAN "Enable MemorySanitizer (MSan)" OFF) xoption(CONFIG_TSAN "Enable ThreadSanitizer (TSan)" OFF) xoption(CONFIG_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan)" OFF)
Would become:
xoption(QJS_BUILD_EXAMPLES "Build examples" OFF) xoption(QJS_BUILD_STATIC_EXE "Build a static qjs executable" OFF) xoption(QJS_BUILD_CLI_WITH_MIMALLOC "Build the qjs executable with mimalloc" OFF) xoption(QJS_BUILD_CLI_WITH_STATIC_MIMALLOC "Build the qjs executable with mimalloc (statically linked)" OFF) xoption(QJS_ENABLE_ASAN "Enable AddressSanitizer (ASan)" OFF) xoption(QJS_ENABLE_MSAN "Enable MemorySanitizer (MSan)" OFF) xoption(QJS_ENABLE_TSAN "Enable ThreadSanitizer (TSan)" OFF) xoption(QJS_ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan)" OFF)
Additionally, BUILD_QJS_LIBC could be renamed QJS_BUILD_LIBC.
BUILD_QJS_LIBC
QJS_BUILD_LIBC
The text was updated successfully, but these errors were encountered:
I don't strenuously object. Pull request welcome, I suppose?
CONFIG_ASAN etc. were carried over from the old Makefile. QJS_CONFIG_ASAN reads awkward. Let's use QJS_ENABLE_ASAN or something like that instead?
Sorry, something went wrong.
I concur with Ben 👍
Opened PR #897, incorporating the feedback on naming (QJS_ENABLE_ASAN, etc)
QJS_ENABLE_ASAN
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
A best-practice recommendation for CMake projects - especially those used as libraries - is to prefix option names with the project prefix / name. (Example: https://discourse.cmake.org/t/best-practices-for-option-naming/2039 )
The CMakeLists.txt currently exposes various build options that would benefit from this:
Would become:
Additionally,
BUILD_QJS_LIBC
could be renamedQJS_BUILD_LIBC
.The text was updated successfully, but these errors were encountered: