manupa-arm commented on a change in pull request #6950:
URL: https://github.com/apache/incubator-tvm/pull/6950#discussion_r529395842



##########
File path: python/tvm/micro/build.py
##########
@@ -162,7 +158,12 @@ def build_static_runtime(
 
         libs.append(compiler.library(lib_build_dir, lib_srcs, lib_opts))
 
-    libs.append(compiler.library(mod_build_dir, [mod_src_path], 
generated_lib_opts))
+    libs.append(

Review comment:
       No, the export_library will create a temporary directory to save source 
files and it will not live beyond the scope of the function. So it did not 
occur to me saving the sources is a feature (I thought it was a side-effect of 
this flow). Thus, I ll just say what I generally do: use pdb and do get_source 
to see the c-source created. Anyhow, do we think this would be a user-facing 
feature ?
   
   if so we can do two things : 
   A1 : Traverse module hierarchy and dump the sources here independently of 
export library, here.
   A2 :  More generally  we can introduce an attr to target_kind "c" in the 
lines of something like "-dbgdir=<dbgdir>" and make the export_library to use 
that directory the dump the intermediary sources.
   
   I think A2 would be more generic, but would be beyond the scope of this PR. 
   Thus if people agree, I could just do A1 here for now with a TODO for A2 at 
some point. 
   What do you think ?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to