scripts/jlib.py:build(): show change to command.
scripts/wrap/cpp.py: reinit_singlethreaded(): disable diagnostic as it isn't
necessary.
scripts/wrap/__main__.py: use make -j by default. We now default to `make -j N`
where `N` is the number of cpus, from Python's multiprocessing.cpu_count().
except Exception:
command0 = None
if command != command0:
- reasons.append( 'command has changed')
+ reasons.append( f'command has changed: {command0!r} => {command!r}')
if not reasons or all_reasons:
reason = fs_any_newer( infiles, outfiles)
make = 'CXX=clang++ gmake'
if j is not None:
- if j == '0':
+ if j == 0:
j = multiprocessing.cpu_count()
jlib.log('Setting -j to multiprocessing.cpu_count()={j}')
make += f' -j {j}'
clang_info_verbose = False
force_rebuild = False
header_git = False
- j = None
+ j = 0
refcheck_if = '#ifndef NDEBUG'
wasm = os.environ.get('OS') in ('wasm', 'wasm-mt')
if wasm:
if not state.state_.windows:
jlib.log( 'Warning: --devenv was specified, but we are not on Windows so this will have no effect.')
elif actions == '-j':
- j = args.next()
+ j = int(args.next())
elif actions == '--python':
build_python = True
build_csharp = False
FZ_FUNCTION void reinit_singlethreaded()
{{
- std::cerr << __FILE__ << ":" << __LINE__ << ":" << __FUNCTION__ << "(): Reinitialising as single-threaded.\\n";
+ if (0)
+ {{
+ std::cerr << __FILE__ << ":" << __LINE__ << ":" << __FUNCTION__ << "(): Reinitialising as single-threaded.\\n";
+ }}
s_state.reinit( false /*multithreaded*/);
}}
''')