Skip to content

Commit

Permalink
Add timing log option to configure.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yomcube authored Mar 6, 2025
1 parent 00e30e6 commit 67b607a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3

from argparse import ArgumentParser
from glob import glob
import io
import os
Expand All @@ -8,6 +9,9 @@
from vendor.ninja_syntax import Writer

generate_tests()
parser = ArgumentParser()
parser.add_argument('--timing', action='store_true', help="Enables timing logs.")
args = parser.parse_args()

out_buf = io.StringIO()
n = Writer(out_buf)
Expand All @@ -27,7 +31,7 @@
n.newline()

common_ccflags = [
'-DREVOLUTION',
'-DFEATURE_TIMING' if args.timing else '',
'-fno-asynchronous-unwind-tables',
'-fno-exceptions',
'-fno-rtti',
Expand Down

0 comments on commit 67b607a

Please sign in to comment.