Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,26 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest, windows-11-arm]
mode: ["--release", "-Zminimal-versions", ""]
manifest: ["psm/Cargo.toml", "Cargo.toml"]
# Pedantic flags
cflags: ["-Werror -Wundef", ""]
exclude:
- rust_toolchain: stable
mode: -Zminimal-versions
- rust_toolchain: 1.91.0
mode: -Zminimal-versions
- os: windows-latest
cflags: "-Werror -Wundef"
- os: windows-11-arm
cflags: "-Werror -Wundef"
include:
- os: windows-latest
extra_target: i686-pc-windows-msvc
- os: windows-11-arm
rust_toolchain: nightly
extra_target: arm64ec-pc-windows-msvc
timeout-minutes: 10
env:
CFLAGS: ${{ matrix.cflags }}
steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ matrix.rust_toolchain }}
Expand Down Expand Up @@ -101,6 +109,7 @@ jobs:
args: --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} -- --nocapture
env:
CC: ${{ matrix.clang_cl }}
CFLAGS: "-Werror -Wundef"

windows-gnu-test:
name: Test ${{ matrix.manifest }} on ${{ matrix.rust_target }} with ${{ matrix.rust_toolchain }}
Expand Down Expand Up @@ -139,6 +148,8 @@ jobs:
with:
command: test
args: --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }}
env:
CFLAGS: "-Werror -Wundef"

cross-windows-gnullvm-check:
name: Check ${{ matrix.manifest }} to ${{ matrix.rust_target }} with stable
Expand Down
4 changes: 2 additions & 2 deletions psm/src/arch/aarch_aapcs64.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

.text

#if CFG_TARGET_OS_darwin || CFG_TARGET_OS_macos || CFG_TARGET_OS_ios
#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios)

#define GLOBL(fnname) .globl _##fnname
#define TYPE(fnname)
#define FUNCTION(fnname) _##fnname
#define END_FUNCTION(fnname)

#elif CFG_TARGET_OS_windows
#elif defined(CFG_TARGET_OS_windows)

#define GLOBL(fnname) .globl fnname
#define TYPE(fnname)
Expand Down
2 changes: 1 addition & 1 deletion psm/src/arch/arm_aapcs.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.text
.syntax unified

#if CFG_TARGET_OS_darwin || CFG_TARGET_OS_macos || CFG_TARGET_OS_ios
#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios)

#define GLOBL(fnname) .globl _##fnname
#define THUMBTYPE(fnname) .thumb_func _##fnname
Expand Down
2 changes: 1 addition & 1 deletion psm/src/arch/x86.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

.text

#if CFG_TARGET_OS_darwin || CFG_TARGET_OS_macos || CFG_TARGET_OS_ios
#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios)

#define GLOBL(fnname) .globl _##fnname
#define TYPE(fnname)
Expand Down
2 changes: 1 addition & 1 deletion psm/src/arch/x86_64.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

.text

#if CFG_TARGET_OS_darwin || CFG_TARGET_OS_macos || CFG_TARGET_OS_ios
#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios)

#define GLOBL(fnname) .globl _##fnname
#define TYPE(fnname)
Expand Down
Loading