Skip to content

Commit e03efc6

Browse files
committed
Update bin/build_pgms.sh to just use make
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.
1 parent fd5e251 commit e03efc6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bin/build_pgms.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
#!/bin/sh
2-
echo '"Use -m32 switch to force 32-bit build"'
3-
${CXX:-g++} $* -std=c++17 -Wall -DNDEBUG -O2 -o bin/lists src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/mailing_info.cpp src/report_generator.cpp src/metadata.cpp src/lists.cpp
4-
${CXX:-g++} $* -std=c++17 -Wall -o bin/section_data src/section_data.cpp
5-
${CXX:-g++} $* -std=c++17 -Wall -o bin/toc_diff src/toc_diff.cpp
6-
${CXX:-g++} $* -std=c++17 -Wall -DNDEBUG -O2 -o bin/list_issues src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/metadata.cpp src/list_issues.cpp
7-
${CXX:-g++} $* -std=c++17 -Wall -DNDEBUG -O2 -o bin/set_status src/set_status.cpp src/status.cpp
2+
make -C $(dirname $0)/.. clean pgms

0 commit comments

Comments
 (0)