Skip to content

Commit

Permalink
Update compile_headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cunbidun committed Feb 17, 2024
1 parent 091a931 commit 4360fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/libs/operations/src/compile_headers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ bool compile_headers(std::filesystem::path precompiled_dir, const string &cc, co
std::filesystem::copy(header_path, precompiled_dir / "stdc++.h", std::filesystem::copy_options::overwrite_existing);

// compile header with normal flags
command = cc + " " + flag + " stdc++.h";
command = cc + " " + flag + " -c" + " stdc++.h";
std::system(command.c_str());
std::filesystem::rename("stdc++.h.gch", compile_header / "stdc++.h.gch");

// compile header with debug flags
command = cc + " " + debug + " stdc++.h";
command = cc + " " + debug + " -c" + " stdc++.h";
std::system(command.c_str());
std::filesystem::rename("stdc++.h.gch", debug_header / "stdc++.h.gch");

Expand Down

0 comments on commit 4360fdf

Please sign in to comment.