-
Notifications
You must be signed in to change notification settings - Fork 283
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
add options to MesonNinja
easyblock to customize build_cmd
, install_cmd
, builddir
#2963
add options to MesonNinja
easyblock to customize build_cmd
, install_cmd
, builddir
#2963
Conversation
MesonNinja
easyblock to customize build_cmd
, install_cmd
, builddir
MesonNinja
easyblock to customize build_cmd
, install_cmd
, builddir
MesonNinja
easyblock to customize build_cmd
, install_cmd
, builddir
Co-authored-by: Kenneth Hoste <kenneth.hoste@ugent.be>
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.
lgtm
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 7 out of 7 (4 easyconfigs in total) |
@@ -49,7 +51,10 @@ def extra_options(extra_vars=None): | |||
"""Define extra easyconfig parameters specific to MesonNinja.""" | |||
extra_vars = EasyBlock.extra_options(extra_vars) | |||
extra_vars.update({ | |||
'build_dir': [None, "build_dir to pass to meson", CUSTOM], | |||
'build_cmd': [DEFAULT_BUILD_CMD, "Build command to use", CUSTOM], |
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.
This breaks the CMakeNinja EasyBlock which doesn't call this method and hence has "make" as the build_cmd
-> #2993
I have a MesonNinja EasyConfig (SU2) that comes bundled with its own meson, but also its own ninja. I need to be able to override the
ninja
command to use the./ninja
command from the source directory. It also needs to build in a specific folder (build
), so I need to be able to override thebuilddir
(which is mislabelled assourcedir
in the EasyBlock) that is passed to the Meson configure command.