diff options
Diffstat (limited to 'devel/electron38/files/patch-build_rust_rust__bindgen__generator.gni')
-rw-r--r-- | devel/electron38/files/patch-build_rust_rust__bindgen__generator.gni | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/electron38/files/patch-build_rust_rust__bindgen__generator.gni b/devel/electron38/files/patch-build_rust_rust__bindgen__generator.gni new file mode 100644 index 000000000000..203e7b2af9ad --- /dev/null +++ b/devel/electron38/files/patch-build_rust_rust__bindgen__generator.gni @@ -0,0 +1,19 @@ +--- build/rust/rust_bindgen_generator.gni.orig 2025-01-27 17:37:37 UTC ++++ build/rust/rust_bindgen_generator.gni +@@ -11,14 +11,14 @@ if (is_win) { + import("//build/toolchain/win/win_toolchain_data.gni") + } + +-_bindgen_path = "${rust_bindgen_root}/bin/bindgen" ++_bindgen_path = "${LOCALBASE}/bin/bindgen" + if (host_os == "win") { + _bindgen_path = "${_bindgen_path}.exe" + } + + # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in + # ../lib. +-_libclang_path = rust_bindgen_root ++_libclang_path = "${LOCALBASE}/llvm${MODCLANG_VERSION}" + if (host_os == "win") { + _libclang_path += "/bin" + } else { |