areusch commented on a change in pull request #5417:
URL: https://github.com/apache/incubator-tvm/pull/5417#discussion_r414955794



##########
File path: python/tvm/micro/device/host.py
##########
@@ -38,59 +52,65 @@ def create_micro_lib(obj_path, src_path, lib_type, 
options=None):
 
     options : Optional[List[str]]
         additional options to pass to GCC
+
+    lib_src_paths : Optional[List[str]]
+        paths to additional source files to be compiled into the library
     """
     if options is None:
         options = []
-    if sys.maxsize > 2**32 and sys.platform.startswith("linux"):
-        options += ["-mcmodel=large"]
+    else:
+        options = list(options)
+    # Cannot increase optimization level on host due to code loading method.
+    options.append('-O0')

Review comment:
       let's just leave as is for now--the runtime will change a lot soon




----------------------------------------------------------------
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