John Sullivan
ab7ea53541
cmake: add option to use llvm-config to find cross-target llvm deps
2020-10-04 00:41:32 -04:00
Alexandros Naskos
52ba2c3a43
Reintroduce progress bar when compiling C files
2020-10-03 22:11:29 -04:00
Tadeo Kondrak
9917b0576a
stage0: check for some more required parameters
2020-10-03 21:32:32 -04:00
Tadeo Kondrak
cbdd825056
stage1: delete unused os code
2020-10-03 21:31:08 -04:00
Tadeo Kondrak
26546af1b8
Revert "Include dbg.h to third-party libs"
...
This reverts commit c8b4cc2ff9
.
This includes many C++ standard library headers:
#include <algorithm>
#include <chrono>
#include <ctime>
#include <iomanip>
#include <ios>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <type_traits>
#include <vector>
which adds more than a second of compile time for each file that
includes the header:
ir.cpp before: 8.041s
ir.cpp after: 6.847s
2020-10-03 21:29:29 -04:00
Andrew Kelley
d1e779cea8
ci: update azure msys base installer
...
hopefully resolves the CI failures
2020-10-03 17:33:51 -07:00
Andrew Kelley
b306149b22
zig run foo.c
is perfectly valid
2020-10-03 17:27:09 -07:00
Andrew Kelley
a2b86777b5
fix alignment in CLI usage text
2020-10-03 17:21:45 -07:00
Andrew Kelley
0e7523c7d7
stage1 main(): catch unreachable in debug builds for easier troubleshooting
...
Fixup to 2a3393eff8
2020-10-03 17:16:19 -07:00
Andrew Kelley
70f3767903
revert adding std.event.Loop.runDetached
...
I'd like to discuss this before adding it. I think this is the wrong
direction to go with this API.
2020-10-03 17:13:22 -07:00
Alexandros Naskos
f3397fad68
Merge pull request #6519 from LemonBoy/fix-6497
...
stage2: Build libunwind for non-msvc Windows targets
2020-10-04 01:23:35 +03:00
LemonBoy
3b40b68210
stage2: Build libunwind for non-msvc Windows targets
...
Closes #6497
2020-10-03 20:47:06 +02:00
Alexandros Naskos
4396373ccb
Merge pull request #6503 from kristoff-it/fix-darwin-symlink-exe
...
fix symlink path not being resolved in darwin
2020-10-03 18:29:44 +03:00
Loris Cro
276598346a
provide the full buffer length to _NSGetExecutablePath
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-10-03 12:03:22 +02:00
Alexandros Naskos
e31cc80130
Merge pull request #6427 from tadeokondrak/enums-explicit-tag-type-extern-allowed
...
Allow enums with explicit extern-allowed tag types in extern types
2020-10-03 12:51:39 +03:00
Alexandros Naskos
b5034bd776
Merge pull request #6506 from FireFox317/stage2-cli
...
Print error when running `zig test/run` without a source file
2020-10-03 12:47:49 +03:00
Timon Kruiper
539e90e26d
Print error when running zig test/run
without a source file
...
Closes #6498
2020-10-02 19:59:00 +02:00
Loris Cro
f841ea77e2
make symlink buffer null-terminated
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-10-02 19:33:14 +02:00
Loris Cro
a2074c1ec3
fix symlink path not being resolved in darwin
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-10-02 17:06:29 +02:00
Alexandros Naskos
e9434ff8f4
Merge pull request #6430 from jedisct1/llvm-config
...
Print the llvm-config path on configuration error
2020-10-02 17:02:08 +03:00
Alexandros Naskos
55eb7c16c0
Merge pull request #6494 from IridescentRose/emit-reloc-patch
...
Emit reloc patch
2020-10-02 17:00:47 +03:00
Alexandros Naskos
cd4c1ea790
Merge pull request #6491 from markfirmware/patch-2
...
Fixes --linker-script unrecognized
2020-10-02 17:00:22 +03:00
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
65016dff32
Add test for implicit extern-allowed enum tag type in extern struct
2020-10-01 18:10:20 -06:00
Tadeo Kondrak
cae49b1b9d
Add tests for enums with explicit extern-allowed tag types in extern types
2020-10-01 18:09:47 -06:00
Tadeo Kondrak
61ce72a38c
Allow enums with explicit extern-allowed tag types in extern types
...
Closes https://github.com/ziglang/zig/issues/1467
2020-10-01 18:09:15 -06: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
Nathan
84b6d2a80a
Resolved additional formatting issues.
2020-10-01 18:03:34 -04:00
Nathan
5e3ce11b18
Resolve name and format issues.
2020-10-01 17:47:32 -04: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
Nathan
1bc197bc02
Merge
2020-10-01 17:06:15 -04:00
Nathan Bourgeois
4566b27373
Patch in emit relocs support
2020-10-01 17:04:04 -04: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
Nathan Bourgeois
5c84f9dad4
Patch in emit relocs support
2020-10-01 15:57:19 -04:00
markfirmware
1296e4a857
Update build.zig
2020-10-01 15:27:08 -04:00
markfirmware
8acfcf4e0d
Update build.zig
...
Fixes #6477
2020-10-01 13:15:35 -04:00