Isaac Freund
d52035f401
std/fmt: add bufPrintZ()
2020-10-15 12:21:19 +02:00
Isaac Freund
b259696cfb
std/fmt: rename allocPrint0() to allocPrintZ()
...
This is consistent with other standard library functions working with
null terminated pointers/slices.
2020-10-15 12:21:14 +02:00
Andrew Kelley
3b4432d9a6
Merge pull request #6655 from kprotty/timers
...
Integrate std.time.sleep with the event loop
2020-10-14 21:49:45 -04:00
Andrew Kelley
2f52f95b92
Merge pull request #6669 from ifreund/color-fixes
...
std/build: support --color
2020-10-14 21:35:43 -04:00
Matthew Knight
352976ed23
Event Channel: updated linked list node initialization ( #6652 )
...
fixed node init method
2020-10-14 21:33:53 -04:00
Andrew Kelley
aa5ff867a2
Merge branch 'jedisct1-tbd-dylib'
...
closes #6681
2020-10-14 18:24:21 -07:00
Andrew Kelley
816304e7e1
add .tbd to usage text
2020-10-14 18:22:50 -07:00
Frank Denis
c0e9d3fb86
Classify .tbd files as shared libraries
...
On macOS, a .tbd ("text-based dylib definition") file is a shared library
stub, allowing symbols to be defined only once for all the architectures
the library was compiled for.
.tbd files can be linked like .dylib files.
2020-10-14 18:19:57 -07:00
Andrew Kelley
477798b37e
ci: macos: unset ZIG_LIBC before testing
...
otherwise cross compiling gets incorrectly affected by the environment
variable.
2020-10-14 17:59:29 -07:00
Andrew Kelley
540364e6c1
ci: macos: update to new cache tarball
...
This tarball contains LLVM, Clang, LLD, Zig, and libz.a for macOS. This
is everything we need for the CI to produce a working Zig executable.
2020-10-14 17:36:43 -07:00
Andrew Kelley
bf8cc73cf3
ci: macos: take advantage of zig-bootstrap
2020-10-14 02:25:51 -07:00
Andrew Kelley
0f4386875f
stage2: support ZIG_LIBC env var and detect self as system C compiler
2020-10-14 02:05:56 -07:00
Jakub Konka
68b31c59a6
Merge pull request #6650 from kubkon/macho-incremental
...
stage2: enable incremental MachO linking
2020-10-14 08:20:33 +02:00
Rocknest
548fd6e87b
force comptime on comptimePrint
2020-10-14 01:03:01 -04:00
Andrew Kelley
3811602ad7
Merge pull request #6643 from jedisct1/chacha-vec
...
std/crypto: add a vectorized ChaCha20 implementation
2020-10-14 00:52:36 -04:00
LemonBoy
0570df69b1
stage1: Fix missing runtime safety check for intToPtr
...
Elide the alignment check if the pointer alignment is one, the null
check must be preserved as it depends on the pointer type.
Fixes #6667
2020-10-14 00:05:50 -04:00
Isaac Freund
6ba1fdf7e0
stage2: use meta.stringToEnum for Color parsing
...
This requires renaming the variants to be snake_case, which is the new
recommended style anyways.
2020-10-13 20:17:30 +02:00
Isaac Freund
f01c3150c1
std/build: support --color
2020-10-13 20:06:03 +02:00
Jakub Konka
adfd298e44
Do not rewrite paths to dyld and libSystem unless changed
2020-10-13 08:38:17 +02:00
Jakub Konka
951721343f
Reuse text blocks; enable all incremental tests
2020-10-13 08:38:17 +02:00
Jakub Konka
cf2aea7b41
Enable incremental testcase for macOS
2020-10-13 08:38:17 +02:00
Jakub Konka
ecd480fe93
Fix writing of load cmds headers *after* symtab update
2020-10-13 08:38:17 +02:00
Jakub Konka
fc660af077
Update allocateTextBlock to use node free list
2020-10-13 08:38:17 +02:00
Jakub Konka
78ec7b671d
Add mechanism for growing/shrinking text blocks
2020-10-13 08:38:17 +02:00
Jakub Konka
0b77152faa
Add local and offset free lists
2020-10-13 08:38:17 +02:00
Andrew Kelley
ea45ee5484
cmake: remove all the LLVM 10 workarounds
2020-10-12 22:35:06 -07:00
Andrew Kelley
9e05f42fee
ci: macos: set the cross compile cmake option
...
This should avoid invoking llvm-config to work around a symbol
not found inside libstdc++, and plus it's technically more correct
anyway.
2020-10-12 22:32:14 -07:00
Andrew Kelley
92926c4331
ci: no space in vmImage I guess
2020-10-12 21:58:46 -07:00
Andrew Kelley
461792f9de
ci: update to macos 10.15 image
2020-10-12 21:53:13 -07:00
Andrew Kelley
68e6da7c00
CI: enable all the freebsd tests
2020-10-12 20:51:16 -07:00
Andrew Kelley
27b04d5905
disable the failing std lib freebsd tests
...
enable std lib freebsd tests on the CI
See #1759
2020-10-12 20:08:23 -07:00
Andrew Kelley
74e3ffa9b4
ci: update llvm 10 => 11
2020-10-12 18:38:28 -07:00
Andrew Kelley
c19dcafa17
Merge remote-tracking branch 'origin/master' into llvm11
2020-10-12 17:57:35 -07:00
Vignesh Rajagopalan
2ab0c7391a
Rename .macosx to .macos
2020-10-12 18:56:25 -04:00
kprotty
12508025a4
Add more comments & cleanup AutoResetEvent
2020-10-11 19:16:07 -05:00
kprotty
e9a4c3dd82
fix DelayQueue typos
2020-10-11 14:21:36 -05:00
kprotty
aa53f6d0b5
integrate std.time.sleep with the event loop
2020-10-11 14:18:19 -05:00
kprotty
a42c0f88e0
AutoResetEvent
2020-10-11 14:17:51 -05:00
Frank Denis
9f109ba0eb
Simpler ChaCha20 vector code
2020-10-10 22:45:41 +02:00
Frank Denis
459128e059
Use an array of comptime_int for shuffle masks
...
Suggested by @LemonBoy - Thanks!
2020-10-10 22:45:41 +02:00
Frank Denis
9b386bda33
std/crypto: add a vectorized ChaCha20 implementation
...
Brings a 30% speed boost on x86_64 even though we still process only
one block at a time for now.
Only enabled on x86_64 since the non-vectorized implementation seems
to currently perform better on some architectures (at least on aarch64).
But the non-vectorized implementation still gets a little speed boost
as well (~17%) with these changes.
2020-10-10 22:45:41 +02:00
Jakub Konka
53c63bdb73
Update WASI preopens doc section to use GPA
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-10 20:07:16 +02:00
redj
c0b2813e04
tools/update_clang_options: add zig run usage example. fix src-self-hosted path. ( #6635 )
...
* tools/update_clang_options: fix src-self-hosted path now simply src.
* tools/update_clang_options: add zig run usage example.
2020-10-09 23:09:36 -04:00
LemonBoy
a31b70c4b8
std: Add/Fix/Change parts of big.int
...
* Add an optimized squaring routine under the `sqr` name.
Algorithms for squaring bigger numbers efficiently will come in a
PR later.
* Fix a bug where a multiplication was done twice if the threshold for
the use of Karatsuba algorithm was crossed. Add a test to make sure
this won't happen again.
* Streamline `pow` method, take a `Const` parameter.
* Minor tweaks to `pow`, avoid bit-reversing the exponent.
2020-10-09 22:16:48 -04:00
Andrew Kelley
fbc6a00b0a
Merge branch 'mlarouche-Fix_6500'
2020-10-09 16:49:05 -07:00
Andrew Kelley
9f8f446435
fixups to previous commit
...
* std.fs.Dir.readFile: add doc comments to explain what it means when
the returned slice has the same length as the supplied buffer.
* introduce readSmallFile / writeSmallFile to abstract over the
decision to use symlink or file contents to store data.
2020-10-09 16:45:39 -07:00
mlarouche
57912964af
Use regular file for caching stage 1 hash digest instead of symlink, fix zig build caching on Windows
...
Fix #6500
2020-10-09 16:50:43 -04:00
Jakub Konka
04b0ffdd13
Merge pull request #6577 from kubkon/macho-trie
...
stage2: add export trie generation in MachO linker
2020-10-09 17:41:52 +02:00
Jakub Konka
8dc4023615
Apply nitpick: top-level doc comments
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-09 17:40:37 +02:00
Josh Wolfe
bc6904eccc
include compiler_rt and c for wasm static libraries
2020-10-09 01:54:42 -04:00