File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,19 @@ jobs:
10
10
11
11
strategy :
12
12
matrix :
13
- arch : [x86_64, arm64]
13
+ arch : [x86_64, arm64, ppc64le ]
14
14
toolchain : [gcc, clang, llvm]
15
15
config : [debug, release]
16
16
rustc : [2021-02-20]
17
17
output : [src] # [src, build]
18
18
install : [rustup] # [rustup, standalone]
19
19
sysroot : [common] # [common, custom]
20
20
21
+ # Exclude `LLVM=1` where not supported.
22
+ exclude :
23
+ - arch : ppc64le
24
+ toolchain : llvm
25
+
21
26
# A few independent combinations to avoid exploding the matrix:
22
27
# - The other option for `output`.
23
28
# - Different nightlies for `rustc`.
48
53
install : standalone
49
54
sysroot : custom
50
55
51
- - arch : ppc64le
52
- toolchain : clang
53
- config : debug
54
- rustc : 2021-02-20
55
- output : src
56
- install : rustup
57
- sysroot : common
58
-
59
56
steps :
60
57
# Setup: checkout
61
58
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ support corresponds to ``S`` values in the ``MAINTAINERS`` file.
23
23
- None
24
24
* - ``powerpc ``
25
25
- Maintained
26
- - ``ppc64le `` only, ``RUST_OPT_LEVEL >= 2 ``, Clang only
26
+ - ``ppc64le `` only, ``RUST_OPT_LEVEL >= 2 ``
27
27
* - ``x86 ``
28
28
- Maintained
29
29
- ``x86_64 `` only
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ config LLD_VERSION
58
58
default 0
59
59
60
60
config HAS_RUST
61
- depends on ARM64 || X86_64 || (PPC64 && CPU_LITTLE_ENDIAN && CC_IS_CLANG )
61
+ depends on ARM64 || X86_64 || (PPC64 && CPU_LITTLE_ENDIAN)
62
62
def_bool $(success,$(RUSTC) --version)
63
63
64
64
config RUSTC_VERSION
Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
54
54
-Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized \
55
55
-Werror=designated-init -Wno-zero-length-bounds \
56
56
--param=% --param asan-%
57
+
58
+ # PowerPC
59
+ bindgen_skip_c_flags += -mtraceback=no -mno-pointers-to-nested-functions \
60
+ -mno-string -mno-strict-align
61
+
57
62
bindgen_extra_c_flags = $(TENTATIVE_CLANG_FLAGS ) -Wno-address-of-packed-member
58
63
bindgen_c_flags = $(filter-out $(bindgen_skip_c_flags ) , $(c_flags ) ) \
59
64
$(bindgen_extra_c_flags )
You can’t perform that action at this time.
0 commit comments