Skip to content

Commit

Permalink
Port coverage change to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 26, 2024
1 parent fbf3c7d commit d88b132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cplusplus/test_euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@
# include sep in the recipe so that Windows won't complain

GCC_TEMPLATE = "{} {{}} -O2 -lstdc++ -lm -Wall -Werror -Wno-deprecated-declarations -std={} -march=native -flto -fwhole-program -o {{}}"
CLANG_TEMPLATE = "{} {{}} -O2 -lstdc++ {} {} -Wall -Werror -Wno-deprecated-declarations -std={} {} -o {{}}"
if environ.get('COV') == 'true':
GCC_TEMPLATE += ' -ftest-coverage -fprofile-arcs'
CLANG_TEMPLATE = "{} {{}} -O2 -lstdc++ {} {} -Wall -Werror -Wno-deprecated-declarations -std={} {} -o {{}}"
CLANG_TEMPLATE = CLANG_TEMPLATE.replace('-O2', '-O1') + ' -ftest-coverage'

templates = {}
for std in STANDARDS:
Expand Down

0 comments on commit d88b132

Please sign in to comment.