fix: windows arm build
This commit is contained in:
parent
dcd7d1093b
commit
08c274dbab
3 changed files with 14 additions and 13 deletions
19
README.md
19
README.md
|
|
@ -38,14 +38,16 @@ exe.root_module.addImport("temporalz", temporalz.module("temporalz"));
|
||||||
|
|
||||||
## Checklist ([Test262](https://github.com/tc39/test262/tree/main/test/built-ins/Temporal))
|
## Checklist ([Test262](https://github.com/tc39/test262/tree/main/test/built-ins/Temporal))
|
||||||
|
|
||||||
- [x] Instant
|
| Namespace | Test262 (todo) |
|
||||||
- [x] Duration
|
| --- | --- |
|
||||||
- [x] PlainDate
|
| Instant | 0/0 |
|
||||||
- [x] PlainTime
|
| Duration | 0/0 |
|
||||||
- [x] PlainDateTime
|
| PlainDate | 0/0 |
|
||||||
- [x] PlainYearMonth
|
| PlainTime | 0/0 |
|
||||||
- [x] PlainMonthDay
|
| PlainDateTime | 0/0 |
|
||||||
- [x] ZonedDateTime
|
| PlainYearMonth | 0/0 |
|
||||||
|
| PlainMonthDay | 0/0 |
|
||||||
|
| ZonedDateTime | 0/0 |
|
||||||
|
|
||||||
## Prebuilt
|
## Prebuilt
|
||||||
|
|
||||||
|
|
@ -57,6 +59,7 @@ Prebuilt libraries are included for the following platforms:
|
||||||
- `x86_64-linux-gnu`
|
- `x86_64-linux-gnu`
|
||||||
- `x86_64-windows-gnu`
|
- `x86_64-windows-gnu`
|
||||||
- `aarch64-windows-gnu`
|
- `aarch64-windows-gnu`
|
||||||
|
- `wasm32-freestanding`
|
||||||
|
|
||||||
For other platforms, the library will build from source; you need the Rust toolchain installed.
|
For other platforms, the library will build from source; you need the Rust toolchain installed.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const build_crab = @import("build_crab");
|
||||||
pub fn build(b: *std.Build) !void {
|
pub fn build(b: *std.Build) !void {
|
||||||
const target = b.standardTargetOptions(.{});
|
const target = b.standardTargetOptions(.{});
|
||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
const is_wasm_freestanding = target.result.cpu.arch.isWasm() and target.result.os.tag == .freestanding;
|
const is_wasm_freestanding = target.result.cpu.arch.isWasm();
|
||||||
|
|
||||||
// --- Zig Module: temporalz --- //
|
// --- Zig Module: temporalz --- //
|
||||||
const mod = b.addModule("temporalz", .{
|
const mod = b.addModule("temporalz", .{
|
||||||
|
|
@ -12,9 +12,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
if (is_wasm_freestanding) {
|
mod.addIncludePath(b.path("src/stubs/c_headers"));
|
||||||
mod.addIncludePath(b.path("src/stubs/c_headers"));
|
|
||||||
}
|
|
||||||
|
|
||||||
// --- Rust C ABI: temporal_capi --- //
|
// --- Rust C ABI: temporal_capi --- //
|
||||||
const temporal_rs = b.dependency("temporal_rs", .{
|
const temporal_rs = b.dependency("temporal_rs", .{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
.name = .temporalz,
|
.name = .temporalz,
|
||||||
.version = "0.1.2",
|
.version = "0.1.2",
|
||||||
.fingerprint = 0xd8d79d59acc4faae,
|
.fingerprint = 0xd8d79d59acc4faae,
|
||||||
.minimum_zig_version = "0.16.0-dev.2535",
|
.minimum_zig_version = "0.16.0-dev.2535+b5bd49460",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.temporal_rs = .{
|
.temporal_rs = .{
|
||||||
.url = "git+https://github.com/boa-dev/temporal#v0.1.2",
|
.url = "git+https://github.com/boa-dev/temporal#v0.1.2",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue