Skip to content

Commit d02af94

Browse files
committed
Updates to ExprTk
1 parent b1d0373 commit d02af94

32 files changed

+20196
-9243
lines changed

compile_expr_file.sh

100644100755
File mode changed.

exprtk/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,23 @@
22
# **************************************************************
33
# * C++ Mathematical Expression Toolkit Library *
44
# * *
5-
# * Author: Arash Partow (1999-2023) *
5+
# * Author: Arash Partow (1999-2024) *
66
# * URL: https://www.partow.net/programming/exprtk/index.html *
77
# * *
88
# * Copyright notice: *
99
# * Free use of the Mathematical Expression Toolkit Library is *
1010
# * permitted under the guidelines and in accordance with the *
1111
# * most current version of the MIT License. *
12-
# * http://www.opensource.org/licenses/MIT *
12+
# * https://www.opensource.org/licenses/MIT *
13+
# * SPDX-License-Identifier: MIT *
1314
# * *
1415
# **************************************************************
1516
#
1617

1718

1819
COMPILER := -c++
1920
#COMPILER := -clang++
20-
OPTIMIZATION_OPT := -O1
21+
OPTIMIZATION_OPT := -O2 -DNDEBUG
2122
BASE_OPTIONS := -pedantic-errors -Wall -Wextra -Werror -Wno-long-long
2223
OPTIONS := $(BASE_OPTIONS) $(OPTIMIZATION_OPT)
2324
LINKER_OPT := -L/usr/lib -lstdc++ -lm
@@ -46,9 +47,9 @@ valgrind :
4647
fi done;
4748

4849
pgo: exprtk_benchmark.cpp exprtk.hpp
49-
$(COMPILER) $(BASE_OPTIONS) -O3 -march=native -fprofile-generate -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT)
50+
$(COMPILER) $(BASE_OPTIONS) -O3 -DNDEBUG -march=native -fprofile-generate -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT)
5051
./exprtk_benchmark
51-
$(COMPILER) $(BASE_OPTIONS) -O3 -march=native -fprofile-use -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT)
52+
$(COMPILER) $(BASE_OPTIONS) -O3 -DNDEBUG -march=native -fprofile-use -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT)
5253

5354
clean:
5455
rm -f core.* *~ *.o *.bak *stackdump gmon.out *.gcda *.gcno *.gcnor *.gch

0 commit comments

Comments
 (0)