Skip to content
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 CLI arguments to build.sh, specify build type #244

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

maurermi
Copy link
Collaborator

@maurermi maurermi commented Jan 8, 2024

Adds CLI arguments to build.sh, and prints to stdout the type of build being performed. Default build is still Debug. Additonally supports a BUILD_DEBUG environment variable, and respects previously set values of CMAKE_BUILD_TYPE.

Low urgency - I found this useful and hopefully others will.

@maurermi maurermi added the enhancement/build-system Improves an aspect of the build system label Jan 8, 2024
Copy link
Collaborator

@anders94 anders94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

scripts/build.sh Outdated Show resolved Hide resolved
scripts/build.sh Outdated Show resolved Hide resolved
@maurermi maurermi force-pushed the modify_build_script branch from 5b39449 to c602e8b Compare April 16, 2024 19:04
scripts/build.sh Outdated Show resolved Hide resolved
@maurermi maurermi force-pushed the modify_build_script branch from c602e8b to d734242 Compare April 21, 2024 20:25
@maurermi
Copy link
Collaborator Author

@HalosGhost @rockett-m Made some updates to address review comments, would love another look over if possible!

Adds CLI arguments to build.sh, and prints to stdout
the type of build being performed. Default build is
still Debug. Additonally supports a BUILD_DEBUG
environment variable, and respects previously set
values of CMAKE_BUILD_TYPE.

Add in help function

Signed-off-by: Michael Maurer <[email protected]>
@maurermi maurermi force-pushed the modify_build_script branch from d734242 to 1c80ead Compare April 22, 2024 18:27
Copy link
Collaborator

@HalosGhost HalosGhost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK. Does what it says on the tin; allow specifying build-type as a basic command-line argument.

Purely positional, but still much more pleasant than having to use environment variables; and interacts cleanly with env-vars so no tooling should break (cleanly allowing cli args to override env-vars as-typical).

LGTM. Merging!

@HalosGhost HalosGhost merged commit fc96d88 into mit-dci:trunk Apr 22, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement/build-system Improves an aspect of the build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants