add --hardwarnings to the build to catch issues

this doesn't seem to error on manifold warnings (which I should fix at
some point), but it does catch "unknown module" errors, which will help
me notice when refactoring breaks imports and modularity

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-03-05 07:27:52 -06:00
parent 950346f85a
commit a67c3a3d7f
Signed by: bss
GPG Key ID: 3DE06D3180895FCB

View File

@ -42,7 +42,7 @@ for root, dirs, files in os.walk('.'):
stl_file = re.sub(r'\.scad$', '.stl', file)
input_ = os.path.join(input_dir, file)
output = os.path.join(output_dir, stl_file)
cmd = f'openscad -o {output} {input_}'
cmd = f'openscad --hardwarnings -o {output} {input_}'
print(cmd)
processes.append(subprocess.Popen(cmd.split(' ')))