Export so file with safety complie options

Following the tutorial, I built the so file with tvm stack. But the so file seems to be a debug version, as following

 file updated.so 
updated.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, with debug_info, not stripped

is there any solution to add extra complie option to export so file?

Ref: python/tvm/runtime/module.py:export_library

You can specify the extra options when exporting the library, like: mod.export_library(file_name, options=["opt1", "opt2"])

1 Like