-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update Poppler to 22.09.0.
- Loading branch information
Showing
9 changed files
with
67 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. | |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Kleis Auke Wolthuizen <[email protected]> | ||
Date: Tue, 15 Sep 2020 11:50:00 +0200 | ||
Subject: [PATCH 1/2] Add llvm-mingw i686/ARMv7 targets | ||
Subject: [PATCH 1/3] Add llvm-mingw i686/ARMv7 targets | ||
|
||
Upstream-Status: Pending | ||
|
||
|
@@ -62,7 +62,7 @@ diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/s | |
index 1111111..2222222 100644 | ||
--- a/compiler/rustc_target/src/spec/mod.rs | ||
+++ b/compiler/rustc_target/src/spec/mod.rs | ||
@@ -1006,7 +1006,9 @@ supported_targets! { | ||
@@ -1045,7 +1045,9 @@ supported_targets! { | ||
("x86_64-uwp-windows-gnu", x86_64_uwp_windows_gnu), | ||
|
||
("aarch64-pc-windows-gnullvm", aarch64_pc_windows_gnullvm), | ||
|
@@ -76,7 +76,7 @@ index 1111111..2222222 100644 | |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Kleis Auke Wolthuizen <[email protected]> | ||
Date: Tue, 22 Sep 2020 10:00:00 +0200 | ||
Subject: [PATCH 2/2] Ensure that panic_unwind/unwind can be successfully built on | ||
Subject: [PATCH 2/3] Ensure that panic_unwind/unwind can be successfully built on | ||
llvm-mingw | ||
|
||
Fixes undefined symbol errors while linking these crates on llvm-mingw | ||
|
@@ -129,3 +129,47 @@ index 1111111..2222222 100644 | |
link(name = "unwind", kind = "static", modifiers = "-bundle") | ||
)] | ||
extern "C" { | ||
|
||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Kleis Auke Wolthuizen <[email protected]> | ||
Date: Tue, 30 Aug 2022 23:20:27 +0200 | ||
Subject: [PATCH 3/3] windows-gnullvm: avoid linking to libunwind statically | ||
|
||
Avoid linking against the static variant of libunwind, which is not | ||
always available. Instead, prefer to use the unwind library from the | ||
toolchain, which the linker will automatically include, depending | ||
on what's available, and depending on the -static flag. | ||
|
||
diff --git a/compiler/rustc_target/src/spec/windows_gnullvm_base.rs b/compiler/rustc_target/src/spec/windows_gnullvm_base.rs | ||
index 1111111..2222222 100644 | ||
--- a/compiler/rustc_target/src/spec/windows_gnullvm_base.rs | ||
+++ b/compiler/rustc_target/src/spec/windows_gnullvm_base.rs | ||
@@ -6,7 +6,7 @@ pub fn opts() -> TargetOptions { | ||
// There were attempts to make it behave like libgcc (so one can just use -l<name>) | ||
// but LLVM maintainers rejected it: https://reviews.llvm.org/D51440 | ||
let pre_link_args = | ||
- TargetOptions::link_args(LinkerFlavor::Gcc, &["-nolibc", "--unwindlib=none"]); | ||
+ TargetOptions::link_args(LinkerFlavor::Gcc, &["-nolibc"]); | ||
// Order of `late_link_args*` does not matter with LLD. | ||
let late_link_args = TargetOptions::link_args( | ||
LinkerFlavor::Gcc, | ||
diff --git a/library/unwind/src/lib.rs b/library/unwind/src/lib.rs | ||
index 1111111..2222222 100644 | ||
--- a/library/unwind/src/lib.rs | ||
+++ b/library/unwind/src/lib.rs | ||
@@ -3,7 +3,6 @@ | ||
#![feature(link_cfg)] | ||
#![feature(staged_api)] | ||
#![feature(c_unwind)] | ||
-#![feature(cfg_target_abi)] | ||
#![cfg_attr(not(target_env = "msvc"), feature(libc))] | ||
|
||
cfg_if::cfg_if! { | ||
@@ -104,7 +103,3 @@ extern "C" {} | ||
#[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] | ||
#[link(name = "unwind", kind = "static", modifiers = "-bundle")] | ||
extern "C" {} | ||
- | ||
-#[cfg(all(target_os = "windows", target_env = "gnu", target_abi = "llvm"))] | ||
-#[link(name = "unwind", kind = "static", modifiers = "-bundle")] | ||
-extern "C" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters