Enabling --iree-vm-emit-polyglot-zip by default. Feels worth the extra ~N KB now that files don't require hacks to extract. Global debug info stripping flags we add in the future can disable it; today our modules already have debug info by default.
diff --git a/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.h b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.h index 8ef8a92..8de6760 100644 --- a/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.h +++ b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.h
@@ -51,8 +51,10 @@ bool stripDebugOps = false; // Enables the output .vmfb to be inspected as a ZIP file. - // This is only useful for debugging and should be disabled otherwise. - bool emitPolyglotZip = false; + // This is useful for debugging/diagnosing issues as embedded executables can + // be extracted and inspected. It adds several KB to the output files and + // should be disabled in release builds. + bool emitPolyglotZip = true; void bindOptions(OptionsBinder &binder); using FromFlags = OptionsFromFlags<BytecodeTargetOptions>;
diff --git a/runtime/src/iree/hal/local/executable_library_benchmark.md b/runtime/src/iree/hal/local/executable_library_benchmark.md index ac4bb54..944af5a 100644 --- a/runtime/src/iree/hal/local/executable_library_benchmark.md +++ b/runtime/src/iree/hal/local/executable_library_benchmark.md
@@ -130,7 +130,7 @@ 2. Extract the executable shared object from the module: ``` -7z e -aoa -bb0 -y module.vmfb +unzip module.vmfb ``` This (today) results in a single extracted file you pass to the tool: