Skip to content

Commit 50af7e8

Browse files
author
Andy C
committed
[translation] Make mycpp-souffle the default!
I still have to change the benchmarks to compare against 'mycpp-nosouffle' instead of 'mycpp-souffle'
1 parent d2fea2d commit 50af7e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

metrics/source-code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ gen-cpp-counts() {
262262
shift
263263

264264
# NOTE: this excludes .re2c.h file
265-
ls _gen/*/*.{cc,h} | $count \
265+
ls _gen/*/*.{cc,h} | egrep -v -- '-souffle|-nosouffle' | $count \
266266
'Generated C++ Code' \
267267
'mycpp generates the big file _gen/bin/oils-for-unix.mycpp.cc. Other programs like Zephyr ASDL and re2c generate other files.' \
268268
"$@"

mycpp/mycpp_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ def main(argv: List[str]) -> int:
259259
260260
""")
261261

262-
# Awkwardness for Python optparse
263-
minimize_stack_roots = False
262+
# This logic works around the Python optparse API
263+
minimize_stack_roots = True
264264
if opts.minimize_stack_roots:
265265
minimize_stack_roots = True
266266
if opts.no_minimize_stack_roots:

0 commit comments

Comments
 (0)