Skip to content

Commit

Permalink
Add patch to skip include new for CppInterOp (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 authored Nov 13, 2024
1 parent 0bb5ca0 commit 733930a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions recipes/recipes_emscripten/cppinterop/patches/new.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/lib/Interpreter/CppInterOpInterpreter.h b/lib/Interpreter/CppInterOpInterpreter.h
index e358406..760fec5 100644
--- a/lib/Interpreter/CppInterOpInterpreter.h
+++ b/lib/Interpreter/CppInterOpInterpreter.h
@@ -148,8 +148,8 @@ public:
llvm::InitializeAllAsmPrinters();

std::vector<const char*> vargs(argv + 1, argv + argc);
- vargs.push_back("-include");
- vargs.push_back("new");
+ // vargs.push_back("-include");
+ // vargs.push_back("new");
inner = compat::createClangInterpreter(vargs);
}

3 changes: 2 additions & 1 deletion recipes/recipes_emscripten/cppinterop/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ source:
sha256: 566e3818de97656990d302a916a2d6925db33c7765a762f36ba28dead03c34a8
patches:
- patches/lld.patch
- patches/new.patch

build:
number: 1
number: 2

requirements:
build:
Expand Down

0 comments on commit 733930a

Please sign in to comment.