biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / editors / jupyter-kernels / xeus-cling / 0002-Don-t-pass-extra-includes-configure-this-with-flags.patch
blobc07e57dfe85dffcd79231650a0233f0834b0d656
1 From 9e6a14bb20567071883563dafb5dfaf512df6243 Mon Sep 17 00:00:00 2001
2 From: thomasjm <tom@codedown.io>
3 Date: Wed, 2 Aug 2023 18:27:16 -0700
4 Subject: [PATCH 2/3] Don't pass extra includes; configure this with flags
6 ---
7 src/main.cpp | 4 +---
8 1 file changed, 1 insertion(+), 3 deletions(-)
10 diff --git a/src/main.cpp b/src/main.cpp
11 index 57294b4..0041a55 100644
12 --- a/src/main.cpp
13 +++ b/src/main.cpp
14 @@ -84,7 +84,7 @@ using interpreter_ptr = std::unique_ptr<xcpp::interpreter>;
16 interpreter_ptr build_interpreter(int argc, char** argv)
18 - int interpreter_argc = argc + 1;
19 + int interpreter_argc = argc;
20 const char** interpreter_argv = new const char*[interpreter_argc];
21 interpreter_argv[0] = "xeus-cling";
22 // Copy all arguments in the new array excepting the process name.
23 @@ -92,8 +92,6 @@ interpreter_ptr build_interpreter(int argc, char** argv)
25 interpreter_argv[i] = argv[i];
27 - std::string include_dir = std::string(LLVM_DIR) + std::string("/include");
28 - interpreter_argv[interpreter_argc - 1] = include_dir.c_str();
30 interpreter_ptr interp_ptr = interpreter_ptr(new xcpp::interpreter(interpreter_argc, interpreter_argv));
31 delete[] interpreter_argv;
32 --
33 2.40.1