You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/09/30 23:07:33 UTC

[GitHub] [incubator-tvm] iiahim commented on a change in pull request #6600: Updated runtime to run under FreeBSD.

iiahim commented on a change in pull request #6600:
URL: https://github.com/apache/incubator-tvm/pull/6600#discussion_r497849264



##########
File path: python/tvm/contrib/cc.py
##########
@@ -103,7 +105,8 @@ def get_target_triple():
 # assign so as default output format
 create_shared.output_format = "so" if sys.platform != "win32" else "dll"
 create_shared.get_target_triple = get_target_by_dump_machine(
-    "g++" if sys.platform == "darwin" or sys.platform.startswith("linux") else None
+    os.environ["CXX"] if "CXX" in os.environ.keys() else \
+        "g++" if sys.platform == "darwin" or sys.platform.startswith("linux") else None

Review comment:
       I don't think this one works. The original function is the CXX env will be used even if the system is not linux or darwin.
   The suggested change does not do that, will set the default value only for linux or darwin, which is not the intent.




----------------------------------------------------------------
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:
users@infra.apache.org