Skip to content

Conversation

@jwakely
Copy link
Member

@jwakely jwakely commented Nov 2, 2024

Add the new source file from Tim's #439 change

There's no good reason why this script is needed to build with -DNDEBUG
and without -g. The performance of the programs is more than adequate
even with assert(std::is_sorted(...)) checks in them.

Just make this script use 'make clean pgms' so that it doesn't need to
be maintained to add new source files, so that the .o files can be
reused for multiple programs, and so that it shares the same build flags
as the makefile.

@jwakely jwakely changed the title Update bin/build_pgms.* Update bin/build_pgms.sh to just use make Nov 2, 2024
There's no good reason why this script is needed to build with -DNDEBUG
and without -g. The performance of the programs is more than adequate
even with assert(std::is_sorted(...)) checks in them.

Just make this script use 'make clean pgms' so that it doesn't need to
be maintained to add new source files, so that the .o files can be
reused for multiple programs, and so that it shares the same build flags
as the makefile.
Copy link
Member

@Dani-Hub Dani-Hub left a comment

Choose a reason for hiding this comment

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

Great, looks good! (I'm only using the build_pgms.bat myself)

@jwakely jwakely merged commit e03efc6 into cplusplus:master Nov 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants