Fix compile (#1501)

* fix compile

* fix space
This commit is contained in:
Awni Hannun
2024-10-18 11:06:40 -07:00
committed by GitHub
parent 50d8bed468
commit 92d7cb71f8
5 changed files with 36 additions and 14 deletions

View File

@@ -103,8 +103,8 @@ void* compile(
source_file.close();
std::ostringstream build_command;
build_command << "g++ -std=c++17 -O3 -Wall -fPIC -shared "
<< source_file_path << " -o " << shared_lib_path;
build_command << "g++ -std=c++17 -O3 -Wall -fPIC -shared '"
<< source_file_path << "' -o '" << shared_lib_path << "'";
std::string build_command_str = build_command.str();
auto return_code = system(build_command_str.c_str());
if (return_code) {