From a67c3a3d7f72be88cf3399fba1a3cc3c43a8a5e1 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" <bss@incorporeal.org> Date: Wed, 5 Mar 2025 07:27:52 -0600 Subject: [PATCH] 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> --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 5e7266d..3afa6e0 100644 --- a/build.py +++ b/build.py @@ -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(' ')))