Samadi van Koten
e94f3c4e25
Add std.io.Reader.readUntilDelimiter()
2021-08-20 12:20:42 +03:00
Isaac Yonemoto
8c39ab2659
enables user-custom code to work with LI and SI
2021-08-20 12:10:45 +03:00
Jakub Konka
792fd9c4a3
macho: extract logic for creating and tracking atoms into fn
2021-08-20 09:49:21 +02:00
Jakub Konka
153e231774
macho: track unresolved externs globally
...
this way we share state between incremental and traditional paths.
2021-08-20 09:12:26 +02:00
Ryan Liptak
2f6dbaa0ea
fs.Dir.walk: Do not close the initial dir during/after walking it
...
Closing the initial directory was unexpected to me, and does not mesh very well with how the rest of the Dir API works.
Fixes #9556
2021-08-20 10:02:54 +03:00
Andrew Kelley
6a5094872f
Merge pull request #9587 from g-w1/sh
...
stage2: implement shr and shl
2021-08-19 23:47:44 -04:00
Andrew Kelley
47f7ed1c4c
Revert "Add mask before truncating dereferenced bit pointers ( #9584 )"
...
This was a workaround for an LLVM 12 bug which has been fixed in LLVM
13.
This reverts commit 5cd1d42a351aa77d2a030e59cbd2b9abf7c44444 but keeps
the test case.
2021-08-19 17:11:46 -07:00
Andrew Kelley
6926e6e705
Merge remote-tracking branch 'origin/master' into llvm13
2021-08-19 17:09:18 -07:00
Jacob G-W
2e22f7e5a5
stage2: implement shl
...
This is implemented in the llvm and cbe backends.
x86_64 will take a bit more time.
2021-08-19 16:18:42 -04:00
Jacob G-W
2e6ce11eb2
stage2: implement shr and boilerplate for shl
...
This implements it in the llvm and c backends.
x86_64 will have to be a little more work.
2021-08-19 16:18:40 -04:00
Jacob G-W
df10e998ee
stage2 x86_64: enable bitwise and + or and add tests
2021-08-19 22:21:16 +03:00
Justin Whear
62fe4a0ba8
std.rand.Random: add enumValue() ( #9583 )
...
* add Random.enumValue()
* edits suggested by review
* applied zig fmt
* Rewrite to use std.enums.values
Implemented pfgithub's suggestion to rewrite against this function, greatly simplifying the implementation.
Co-authored-by: Justin Whear <justin@economicmodeling.com>
2021-08-19 22:18:23 +03:00
Meghan
7e7d67d8ee
std.fmt: add support for printing slices strings ( #9562 )
2021-08-19 14:12:11 +03:00
Jacob G-W
d785dc49aa
stage2: add error set type equality
2021-08-19 14:09:53 +03:00
Jacob G-W
2129cc5c54
stage2: fix typo
...
this made errors go from stuff like:
> type comptime_int cannot represent integer value 40
to
> type u5 cannot represent integer value 40
which makes much more sense
2021-08-19 13:48:52 +03:00
Robin Voetter
5cd1d42a35
Add mask before truncating dereferenced bit pointers ( #9584 )
2021-08-19 01:20:50 -04:00
Andrew Kelley
87d5db057b
update libcxx to latest llvm release/13.x
...
rc1 + 98feb20df14e6cf9ce77f097ceb8dd188c9070a7
2021-08-18 15:27:00 -07:00
Jakub Konka
30247fbb6a
macho: remove redundant writeStubHelperCommon codepath
2021-08-18 11:46:45 +02:00
Jakub Konka
8167456c58
macho: resolve undefs in incremental properly
...
Instead of assuming that every undef extern symbol comes from libSystem,
actually perform the check!
2021-08-18 00:17:03 +02:00
Jakub Konka
790633a2a0
macho: use common codepath for resolving dyld_stub_binder
2021-08-17 22:10:07 +02:00
Jakub Konka
8b795fe2ac
macho: parse input files and libs in incremental
...
This converges parsing of linker line in incremental; however,
still doesn't save the parsing state between updates.
2021-08-17 19:49:17 +02:00
Jakub Konka
69f4281774
macho: memorize if dyld_stub_binder was already resolved
2021-08-17 18:33:41 +02:00
Jakub Konka
c6ea181e75
macho: dedup setting entry point logic
2021-08-17 10:54:10 +02:00
Andrew Kelley
92b69215e6
update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1
2021-08-16 23:32:13 -07:00
Jakub Konka
52f9b283a7
macho: fix writeSymbolTable() function
...
After merging `populateMetadata` with `populateMissingMetadata`,
it is imperative we clear the number of symbols in `writeSymbolTable`.
However, this is hopefully just a temp measure until the convergence
of incremental with traditional is complete.
2021-08-16 19:58:05 +02:00
Jakub Konka
a51edc978f
macho: converge populateMetadata with populateMissingMetadata
2021-08-16 19:15:04 +02:00
Jakub Konka
4c90c1ff63
Merge remote-tracking branch 'origin/master' into zld-incr
2021-08-16 15:24:20 +02:00
Andrew Kelley
1b8f0d8b56
add m68k glibc (2.33) headers
2021-08-16 01:44:48 -07:00
Andrew Kelley
968c969e2a
add m68k musl (1.2.2) headers
...
This commit also corrects a mistake from commit
6dc2236054dfcf911ce848f67a4078740a90783a which did not properly delete
files when upgrading to the 1.2.2 musl headers.
2021-08-16 01:40:27 -07:00
Jakub Konka
4c9d41730e
Merge pull request #9568 from ziglang/issue-9565
...
macho: don't embed codesig unless targeting aarch64-macos
2021-08-16 10:17:54 +02:00
Andrew Kelley
2f599b655b
update src/ to LLVM 13 rc1 API
2021-08-16 01:11:10 -07:00
Andrew Kelley
a69b86003c
update CI scripts to llvm 13 rc1
2021-08-15 23:11:01 -07:00
Andrew Kelley
7adf15682c
update target CPU features with LLVM 13 rc1 data
2021-08-15 23:09:55 -07:00
Andrew Kelley
d6467dcf71
update clang tools to 13 rc1
2021-08-15 18:06:29 -07:00
Andrew Kelley
21606339af
update C header files to clang 13 rc1
2021-08-15 18:00:10 -07:00
Andrew Kelley
78ff2a148a
cmake: update to LLVM 13 rc1
...
More precisely, aac4fe380d16a957627af2d6e5110ee35ad7e7e7 which is the
current tip of release/13.x.
Immediately following commits are tracking the same LLVM version.
2021-08-15 17:48:37 -07:00
Jakub Konka
e2303840de
Fix AST and build errors
2021-08-15 23:50:39 +02:00
Jakub Konka
d5f7963331
macho: adhoc code sign binaries targeting aarch64-xxx-simulator
2021-08-15 18:29:19 +02:00
Jakub Konka
f82c26eb04
macho: don't embed codesig unless targeting aarch64-macos
...
When developing an iOS app for example, the developer is required
to use Apple's codesign utility to generate a valid signature
as done by Xcode.
2021-08-15 18:07:30 +02:00
Jakub Konka
b20b6d7da9
macho: move bit adding rpaths to common codepath
2021-08-14 22:18:18 +02:00
Jakub Konka
819ef52104
macho: merge linkWithZld with flush
2021-08-14 21:56:41 +02:00
Veikka Tuominen
e9bf8014bd
Merge pull request #9559 from squeek502/walker-basename
...
fs.Dir.Walker: Fix basename missing its first character for direct children of the initial directory
2021-08-14 11:08:10 +03:00
Meghan
fcf2ce0ffe
std.fmt: add name of type in unsupport format string compile error
2021-08-14 11:07:01 +03:00
Thom Chiovoloni
c2635f9b02
Fix darwin ulock usage on macOS ( #9545 )
...
* Fix darwin ulock usage on macOS
* Fix review comments, and correctly handle timeout overflow on darwin
* Apply more review suggestions
2021-08-13 22:43:42 -05:00
Ayende Rahien
65208a7fa2
Expose register_eventfd, register_eventfd_async, unregister_eventfd i… ( #9449 )
...
* Expose register_eventfd, register_eventfd_async, unregister_eventfd in the IO URing API
* Fixing formatting
* Fixing typo
* Removing unnecessary casts and adding better comments for a single registration of eventfd
* Update lib/std/os/linux/io_uring.zig
Co-authored-by: Joran Dirk Greef <joran@coil.com>
* Update lib/std/os/linux/io_uring.zig
Co-authored-by: Joran Dirk Greef <joran@coil.com>
* Updating util function name
Co-authored-by: Joran Dirk Greef <joran@coil.com>
2021-08-13 22:41:18 -05:00
Ryan Liptak
f6bb56f8c7
Improve fs.Walker test
...
- Take into account that iteration order is undefined by checking against a map instead of relying on numerically sorted iteration order
- Check both path and basename for each entry instead of just path
2021-08-13 16:43:52 -07:00
Ryan Liptak
7e07df06a4
ComptimeStringMap: expose kvs array in returned struct
...
Allows for iterating over the kvs when constructing with a list literal instead of having to create a separate array to pass into ComptimeStringMap in order to maintain access to the values.
For example when making a set, before in order to loop over the kvs you'd have to do something like:
const MyKV = struct { @"0": []const u8 };
const kvs: []const MyKV = &[_]MyKV{ .{ @"0" = "foo"}, .{ @"0" = "bar" } };
const map = ComptimeStringMap(void, kvs);
for (kvs) |kv| {}
whereas now it's possible to do:
const map = ComptimeStringMap(void, .{ .{"foo"}, .{"bar"} });
for (map.kvs) |kv| {}
2021-08-13 16:22:56 -07:00
Ryan Liptak
8ff49966bc
fs.Walker: Fix basename missing its first character for direct children of the initial directory
...
Closes #9557
2021-08-13 16:22:56 -07:00
Jakub Konka
1373df4c34
Merge pull request #9227 from mathetake/libc-wasi-test
...
WASI,libc: fix libstd with wasi-libc linkage, and enable tests.
2021-08-13 21:56:32 +02:00
Takeshi Yoneda
68617c9fb0
Add comment about compiletime check.
...
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2021-08-13 21:54:18 +09:00