We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72f12eb commit 5ddb68eCopy full SHA for 5ddb68e
xobjects/context_cpu.py
@@ -466,14 +466,15 @@ def compile_kernel(
466
return Path(output_file)
467
finally:
468
# Clean temp files
469
- files_to_remove = [
470
- module_name + ".c",
471
- module_name + ".o",
472
- ]
473
-
474
- for ff in files_to_remove:
475
- if os.path.exists(ff):
476
- os.remove(ff)
+ if 'XOBJECTS_KEEP_BUILD_FILES' not in os.environ:
+ files_to_remove = [
+ module_name + ".c",
+ module_name + ".o",
+ ]
+
+ for ff in files_to_remove:
+ if os.path.exists(ff):
477
+ os.remove(ff)
478
479
def _build_sources(
480
self,
0 commit comments