add c++ std to custom aot compile cmd

This commit is contained in:
xulei 2021-12-20 14:15:05 +08:00
parent 2b58bc95ab
commit 612cfe453b
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ def get_file_path_gpu(cuda, so):
def get_file_path_cpu(cc, so):
dir_path = os.path.dirname(os.path.abspath(__file__))
cmd = "g++ --shared -fPIC -o " + dir_path + "/aot_test_files/" + so + " " + dir_path + "/aot_test_files/" + cc
cmd = "g++ -std=c++17 --shared -fPIC -o " + dir_path + "/aot_test_files/" + so + " " + dir_path + \
"/aot_test_files/" + cc
func_path = dir_path + "/aot_test_files/" + so
return cmd, func_path