From 4360fdff6141791bd590f2bbc0d85c0cdf6a2c17 Mon Sep 17 00:00:00 2001 From: Duy Pham Date: Sat, 17 Feb 2024 07:18:22 +0000 Subject: [PATCH] Update compile_headers --- core/libs/operations/src/compile_headers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/libs/operations/src/compile_headers.cpp b/core/libs/operations/src/compile_headers.cpp index 52df758..c21afeb 100644 --- a/core/libs/operations/src/compile_headers.cpp +++ b/core/libs/operations/src/compile_headers.cpp @@ -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");