add check for void for microzig.hal (#112)

* add check for void for microzig.hal

* modify github actions to run on every push
wch-ch32v003
Matt Knight 2 years ago committed by GitHub
parent b6fc3abbf7
commit 08e7d5b01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,11 +1,6 @@
name: Build name: Build
on: on:
push: push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 0 * * *"
jobs: jobs:
build: build:

@ -84,7 +84,7 @@ fn is_valid_field(field_name: []const u8) bool {
const VectorTable = if (@hasDecl(root, "microzig_options") and @hasDecl(root.microzig_options, "VectorTable")) const VectorTable = if (@hasDecl(root, "microzig_options") and @hasDecl(root.microzig_options, "VectorTable"))
root.microzig_options.VectorTable root.microzig_options.VectorTable
else if (@hasDecl(microzig.hal, "VectorTable")) else if (microzig.hal != void and @hasDecl(microzig.hal, "VectorTable"))
microzig.hal.VectorTable microzig.hal.VectorTable
else else
microzig.chip.VectorTable; microzig.chip.VectorTable;

Loading…
Cancel
Save