Skip to content

Commit

Permalink
jit: fix with clang-19
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 18, 2024
1 parent e1420cc commit c56b629
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/plugins/score-plugin-jit/JitCpp/ClangDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,14 @@ llvm::Expected<std::unique_ptr<llvm::Module>> ClangCC1Driver::compileTranslation
{
ossia::logger().info("JIT cache miss");
bitcodeFile = replaceExtension(cpp, "bc");

// Remove -E -P -o foo.preproc.hpp foo.cpp
flags_vec.resize(flags_vec.size() - 5);

// flags_vec.push_back("-emit-llvm");
flags_vec.push_back("-emit-llvm-bc");
flags_vec.push_back("-emit-llvm-uselists");

flags_vec.push_back("-o");
flags_vec.push_back(bitcodeFile);
flags_vec.push_back(cpp);
Expand Down Expand Up @@ -185,10 +192,6 @@ std::vector<std::string> ClangCC1Driver::getClangCC1Args(CompilerOptions opts)
std::vector<std::string> args;
args.reserve(200);

args.push_back("-emit-llvm");
args.push_back("-emit-llvm-bc");
args.push_back("-emit-llvm-uselists");

populateCompileOptions(args, opts);
populateDefinitions(args);
populateIncludeDirs(args);
Expand Down

0 comments on commit c56b629

Please sign in to comment.