Alexandros Naskos
006b780d44
Merge pull request #6484 from LemonBoy/winshit
...
Some windows fixes
2020-10-02 15:05:44 +03:00
Alexandros Naskos
e207031837
Merge pull request #6402 from tadeokondrak/@Type(.Fn)
...
Implement @Type for Fn
2020-10-02 09:44:27 +03:00
Tadeo Kondrak
183d1d4ba1
Switch TypeInfo.Fn.alignment to comptime_int from u29
...
All integers in TypeInfo are intentionally comptime_int:
https://github.com/ziglang/zig/issues/1683
2020-10-01 18:01:41 -06:00
Tadeo Kondrak
96a151d4b8
Skip @Type/@typeInfo Fn/BoundFn tests on wasm32/wasm64
2020-10-01 18:01:40 -06:00
Tadeo Kondrak
e18fdc12b0
stage1: Implement @Type for Fn and BoundFn
2020-10-01 18:01:38 -06:00
Tadeo Kondrak
97ab720d84
stage1: Add alignment to TypeInfo.Fn
2020-10-01 17:59:42 -06:00
Alexandros Naskos
0228887b94
Merge pull request #6428 from tadeokondrak/alignment-typeinfo-struct-union
...
Add alignment field to TypeInfo.UnionField and TypeInfo.StructField
2020-10-02 02:56:18 +03:00
Alexandros Naskos
a4fe438d39
std.fmt.comptimePrint: bufPrint cannot return an error
2020-10-02 00:39:19 +03:00
Alexandros Naskos
49c0cd6e8e
Merge pull request #6481 from MasterQ32/stage1_error_return_trace
...
Adds error return trace printing to stage1
2020-10-02 00:22:24 +03:00
Tadeo Kondrak
362c87f1aa
Update std.meta.ArgsTuple for alignment in StructField/UnionField
2020-10-01 15:06:24 -06:00
Tadeo Kondrak
ec8f0777f2
Update std.meta.Tuple for alignment in StructField/UnionField
2020-10-01 15:06:23 -06:00
Tadeo Kondrak
e187ac09cb
Update compile error tests for alignment in StructField/UnionField
2020-10-01 15:06:21 -06:00
Tadeo Kondrak
a12203d2be
Switch TypeInfo alignment fields from u29 to comptime_int
2020-10-01 15:01:28 -06:00
Tadeo Kondrak
70c507911a
Update @Type tests for alignment field in UnionField and StructFIeld
2020-10-01 15:01:27 -06:00
Tadeo Kondrak
c2ee66108c
Add tests for alignment field in UnionField and StructFIeld
2020-10-01 15:01:26 -06:00
Tadeo Kondrak
d81648ce8c
Add alignment field to TypeInfo.UnionField and TypeInfo.StructField
...
Closes https://github.com/ziglang/zig/issues/6122
2020-10-01 15:01:25 -06:00
Tadeo Kondrak
77df5dae7f
Make builtin.TypeInfo.Pointer.alignment u29 instead of comptime_int
2020-10-01 15:01:24 -06:00
Alexandros Naskos
5acf2a5068
Merge pull request #6419 from tadeokondrak/std.fmt.comptimePrint
...
std.fmt: add comptimePrint
2020-10-01 23:59:00 +03:00
Alexandros Naskos
bf0afaa876
std.event.Loop.runDetached should be pub
2020-10-01 16:50:05 +03:00
Alexandros Naskos
beda6f2299
Merge pull request #6455 from kristoff-it/event-loop-go
...
add runDetached to event loop
2020-10-01 15:57:02 +03:00
LemonBoy
212171643c
stage2: Add missing defines for building dllcrt2.o
...
Closes #6482
2020-10-01 11:39:22 +02:00
LemonBoy
1b2d50737a
mingw: Add user32.def for 32bit Windows
...
Closes #6479
2020-10-01 11:27:59 +02:00
Alexandros Naskos
b358c28171
Merge pull request #6461 from tadeokondrak/type-enum-invalid-tag-type
...
stage1: Fix @Type(.Enum) with invalid tag_type
2020-10-01 11:19:02 +03:00
Felix (xq) Queißner
2a3393eff8
Adds error return trace printing to stage1.
2020-10-01 09:40:03 +02:00
Alexandros Naskos
4eb390b157
Merge pull request #6457 from Snektron/fix-arraylistunmanaged
...
Fix std.ArrayListUnmanaged + improve test coverage
2020-10-01 00:09:45 +03:00
Andrew Kelley
718a659773
std: skip some tests that stage1 leaks too much memory with
...
We can restore these when we have self-hosted available.
This is intended to address #6467
2020-09-30 12:37:00 -07:00
Tadeo Kondrak
e903b00eec
stage1: Fix @Type(.Enum) with invalid tag_type
...
Fixes https://github.com/ziglang/zig/issues/6459
2020-09-30 07:02:38 -06:00
Andrew Kelley
fe117d9961
Merge pull request #6250 from ziglang/stage2-zig-cc
...
move `zig cc`, `zig translate-c`, `zig libc`, main(), and linking from stage1 to stage2
2020-09-30 04:28:19 -04:00
Andrew Kelley
3249e5d952
MachO: add the same workaround for no -r LLD flag support
...
This is the MachO equivalent for the code added to COFF for doing the
file copy when the input and output are both just one object file.
2020-09-30 01:04:30 -07:00
Andrew Kelley
2a893efae1
fix incorrect dylib filename pattern in the previous commit
2020-09-30 00:53:55 -07:00
Andrew Kelley
870af49074
std.zig.binNameAlloc: take into account version for macos dylibs
2020-09-30 00:36:20 -07:00
Ryan Liptak
bd449b184a
Add deleteDir test with exception for not-empty directory on Windows
...
Re-adds the test that was added and then reverted in https://github.com/ziglang/zig/pull/6397 , but with the test for https://github.com/ziglang/zig/issues/5537 skipped for now since that issue is no longer fixed.
2020-09-30 02:35:17 -04:00
Andrew Kelley
14d6d07af2
fix the cli test expected string to support native path separators
2020-09-30 01:31:08 -04:00
Andrew Kelley
839bdfdc93
link.Coff: skip redundant (and invalid) copy to same path
2020-09-29 21:48:50 -07:00
Andrew Kelley
7bffa6f1fb
clean up call to std.fs.rename
...
Thanks Ryan Liptak!
2020-09-29 21:47:37 -07:00
Andrew Kelley
1572cd4d76
different strategy to fix compiler_rt.zig and c.zig
...
with respect to std.builtin.link_libc.
The commit 27e008eb292038c5a6b9a13b64c7b69d1525f690 did not solve the
problem because although it got std.builtin.link_libc to be true for
compiler_rt.zig and c.zig, it had other unintentional side effects which
broke the build for -lc -target foo-linux-musl.
This commit introduces a new flag to Compilation to allow setting this
comptime flag to true without introducing other side effects to
compilation and linking.
2020-09-29 18:32:41 -07:00
Ryan Liptak
254ee89def
Windows: Handle ACCESS_DENIED in DeviceIoControl
...
This was causing the Dir.readLink test to fail for me locally with error.Unexpected NTSTATUS=0xc0000022. Not sure if PRIVILEGE_NOT_HELD is actually possible or not.
2020-09-29 20:54:45 -04:00
Andrew Kelley
402f967ed5
move std.http to the standard library orphanage
...
I want to take the design of this in a different direction. I think this
abstraction is too high level. I want to start bottom-up.
std-lib-orphanage commit 179ae67d61455758d71037434704fd4a17a635a9
2020-09-29 17:40:37 -07:00
Andrew Kelley
af64fd2f42
Merge remote-tracking branch 'origin/master' into stage2-zig-cc
...
This merges in the revert that fixes the broken Windows build of master
branch.
2020-09-29 17:26:09 -07:00
Andrew Kelley
27e008eb29
fix not passing std.builtin.link_libc to compiler_rt.zig and c.zig
...
comment reproduced here:
This is so that compiler_rt and libc.zig libraries know whether they
will eventually be linked with libc. They make different decisions
about what to export depending on whether another libc will be linked
in. For example, compiler_rt will not export the __chkstk symbol if it
knows libc will provide it, and likewise c.zig will not export memcpy.
2020-09-29 17:24:21 -07:00
Andrew Kelley
f69650a478
update wasm to use ".o.wasm" extension for objects
...
This is convenient for debugging purposes, as well as simplifying the
caching system since executable basenames will not conflict with their
corresponding object files.
2020-09-29 17:01:05 -07:00
Andrew Kelley
d1cea16f5c
move std.BloomFilter to the standard library orphanage
2020-09-29 16:39:05 -07:00
Jakub Konka
bb636cb3bf
Revert "Fix for Windows: std.os.windows.DeleteFile()"
2020-09-29 19:35:44 -04:00
Andrew Kelley
63685190da
move std.rb to the standard library orphanage
...
https://github.com/ziglang/std-lib-orphanage/
This code is not used by anything else in the standard library or by the
compiler or any of its tools and therefore it's a great candidate
to be maintained by a third party.
2020-09-29 16:01:51 -07:00
Andrew Kelley
b811a99af9
Merge remote-tracking branch 'origin/master' into stage2-zig-cc
2020-09-29 14:53:48 -07:00
Andrew Kelley
0da7c4b0c8
improve stage2 COFF LLD linking
...
* change some {} to be {s} to gain type safety
* fix libraries being libfoo.lib instead of foo.lib for COFF
* when linking mingw-w64, add the "always link" libs so that we
generate DLL import .lib files for them as the linker code relies on.
* COFF LLD linker does not support -r so we do a file copy as an
alternative to the -r thing that ELF linking does.
I will file an issue for the corresponding TODO upon merging this
branch, to look into an optimization that possibly elides this copy
when the source and destination are both cache directories.
* add a CLI error message when trying to link multiple objects into one
and using COFF object format.
2020-09-29 14:48:12 -07:00
Andrew Kelley
56c5b665a1
Merge pull request #6448 from LemonBoy/some-vec-fixes
...
Some vector fixes
2020-09-29 15:19:09 -04:00
Andrew Kelley
a1ae3f92c1
Merge pull request #6442 from jedisct1/aegis
...
std/crypto: add the AEGIS AEADs
2020-09-29 15:18:06 -04:00
Andrew Kelley
65b03092e3
Merge pull request #6450 from jedisct1/gimli-opt
...
std/crypto: make Gimli 60% faster
2020-09-29 15:16:52 -04:00
Andrew Kelley
7c0ee42385
CI: TERM=dumb to source hut
2020-09-29 12:10:38 -07:00