Skip to content

Commit 9f17a9c

Browse files
bors[bot]Jethro Beekman
and
Jethro Beekman
authored
Merge #152
152: Update bindgen r=raoulstrackx a=jethrogb I took some time this week to make the necessary bindgen changes (rust-lang/rust-bindgen#2004 rust-lang/rust-bindgen#2006 rust-lang/rust-bindgen#2007). This PR updates the bindgen build to use that. Breaking changes: * unnamed types are renamed * C-unions are now actual unions * [x] the field accessor functions that used to exist are easy enough to add back * bitfields are done differently now * some fn-ptrs are now unsafe * some fns and fn-ptrs now take const pointers as arguments * havege.c and timing.c are now not compiled on non-unix platforms, i.e. SGX (probably wasn't working properly anyway) Fixes #5 #14 #61 #72 #88 #121 Co-authored-by: Jethro Beekman <[email protected]>
2 parents 6bba90e + 153d192 commit 9f17a9c

File tree

8 files changed

+367
-243
lines changed

8 files changed

+367
-243
lines changed

.travis.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,26 @@ os: linux
1111
dist: xenial
1212
addons:
1313
apt:
14+
sources:
15+
- sourceline: "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-11 main"
16+
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
1417
packages:
15-
- llvm-3.8-dev
16-
- libclang-3.8-dev
17-
- clang-3.8
18+
- llvm-3.9-dev
19+
- libclang-3.9-dev
20+
- clang-3.9
21+
- clang-11
1822
- cmake
1923
rust:
2024
- stable
2125
- beta
2226
- nightly
23-
- nightly-2019-07-01
27+
- nightly-2021-03-25
2428
env:
2529
global:
2630
- RUST_BACKTRACE=1
2731
# Pinned to this particular nightly version because of core_io. This can be
2832
# re-pinned whenever core_io is updated to the latest nightly.
29-
- CORE_IO_NIGHTLY=nightly-2019-07-01
30-
- LLVM_CONFIG_PATH=llvm-config-3.8
33+
- CORE_IO_NIGHTLY=nightly-2021-03-25
34+
- LLVM_CONFIG_PATH=llvm-config-3.9
3135
script:
3236
- ./ct.sh

0 commit comments

Comments
 (0)