Andrew Kelley
38eebf3c4d
Merge pull request #14392 from ziglang/zig-build-transitive-deps
...
std.build.LibExeObjStep: better handle transitive deps
2023-01-21 02:54:25 -05:00
Andrew Kelley
6d38dba72e
std.build.LibExeObjStep: avoid putting static libs inside static libs
2023-01-20 19:31:38 -07:00
Andrew Kelley
7ea3937c5a
std.build.LibExeObjStep: better handle transitive deps
...
* no longer repeat -lc on the linker line redundantly
* when using linkLibrary() with a static library, it will now also put
the static library's static library dependencies on the linker line,
recursively.
* refactor out a common pattern to an addFlag function
2023-01-20 16:58:31 -07:00
Jakub Konka
74b72a766d
Merge pull request #14386 from ziglang/macho-fixes
...
macho: fix nondeterministic failures in the macOS CI
2023-01-20 18:28:16 +01:00
Hardy
37fe41792c
added test for bitcast signaled nan float
...
This was fixed by MR #14201
closes #10449
2023-01-20 16:42:24 +02:00
Jakub Konka
9f0cb763a4
macho: disable some log messages
2023-01-20 13:10:20 +01:00
Jakub Konka
9d2711a3d9
macho: use ArrayHashMap for tracking of dyld runtime metadata
2023-01-20 12:10:16 +01:00
Jakub Konka
e17c551a2e
macho: revert ordering tweak of lazy bind pointers and add logging
2023-01-20 11:00:08 +01:00
Jakub Konka
dcdbfba770
macho: require an exclusive lock to the Cache.Manifest
2023-01-20 10:59:48 +01:00
Veikka Tuominen
fe6dcdba14
Merge pull request #14357 from kcbanner/llvm_byval_struct
...
llvm: implement Stdcall calling convention
2023-01-20 04:38:49 +02:00
mlugg
d3599ec73c
std: implement os.mprotect on Windows
2023-01-20 03:33:35 +02:00
Jarred Sumner
a9eb463202
Make res
nullable in getaddrinfo
2023-01-19 23:08:15 +02:00
山下
6c98c8d891
Wildcard certs should only validate one level of sub domain
2023-01-19 19:13:42 +00:00
Jakub Konka
989b0e620b
Merge pull request #14369 from ziglang/macho-dyld-ops
...
macho+zld: add improved dyld opcodes emitters
2023-01-19 19:49:51 +01:00
kcbanner
c1bdf01533
tests: disable c_abi tests for windows when compiling on linux
2023-01-19 13:06:21 -05:00
Manlio Perillo
efbb6128bb
langref: always start code on a separate line in a syntax_block
...
In a syntax_block the code always start on a separate code, expect for
C, JavaScript, Peg and with Zig inline assembly.
Ensure that the code starts on a separate line, even in cases where
there is only one line.
Ensure that the end_syntax_block is always on a separate line and that
the indentation is consistent.
2023-01-19 19:10:01 +02:00
Marco Munizaga
d87a58dfab
Add framework paths from NIX_CFLAGS_COMPILE
2023-01-19 16:57:55 +02:00
IntegratedQuantum
f38fd388f8
Mutex deadlock detection in debug
...
Add a debug implementation to Mutex that detects deadlocks caused by calling lock twice in a single thread.
2023-01-19 16:57:29 +02:00
star-tek-mb
116b770809
fix selectSymbol function pointers
2023-01-19 16:34:02 +02:00
Veikka Tuominen
2b7678bc42
llvm: implement Stdcall return types
2023-01-19 16:13:52 +02:00
Adrian Cole
7208e1ff87
wasm: avoids allocating zero length buffers for args or env
...
I was testing this with wazero, which defaults to not propagate any env
variables. This ensures we don't try to allocate zero length buffers
when there are no results from either function.
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-01-19 15:34:38 +02:00
Jakub Konka
bcd16b2708
macho: fix ordering issue with lazy bind pointers
2023-01-19 14:06:47 +01:00
Jakub Konka
b2febd1ce7
macho: fix 32bit build
2023-01-19 09:53:18 +01:00
kcbanner
5949851074
llvm: pass non-scalars as byref in .Stdcall
...
- add c_abi tests for .Stdcall
- enable (x86|x86_64)-windows-gnu in the c_abi tests
2023-01-19 00:37:56 -05:00
Jakub Konka
c70a3d9022
macho: port arm64 and x86_64 compact unwind defs verbatim
...
We do not need more for the purpose of parsing and synthesising
unwind info by the linker. If we ever decide to generate unwind
info for Zig by the compiler, we can re-add packed struct defs
again.
2023-01-19 03:44:42 +01:00
Jakub Konka
069fe0d63f
update CMakeLists.txt with new entries
2023-01-19 00:35:33 +01:00
Jakub Konka
9d4a4e9ed1
link-tests: update uuid test with new uuid given dyld ops changes
2023-01-19 00:05:54 +01:00
Jakub Konka
61e38d0c34
macho+zld: add improved dyld opcodes emitters
2023-01-19 00:05:45 +01:00
Loris Cro
35f5d43768
autodoc: add support for top-level doc comments
2023-01-18 19:45:32 +01:00
Manlio Perillo
72c09b7b3b
langref: use the term tuple in the Hello World section
...
In the Hello World section, replace the term "anonymous struct literal"
with tuple, when documenting the second argument of stdout.print().
2023-01-18 15:33:58 +02:00
Michael Dusan
c9f7b32fbd
netbsd: add mcontext_t for aarch64
...
- test `lib/std/std.zig` passes
- stack traces work
2023-01-18 02:50:11 -05:00
Andrew Kelley
7f604b6f48
Merge pull request #14333 from Vexu/fixes
...
Misc fixes
2023-01-17 21:32:13 -05:00
Andrew Kelley
73827d2ea9
CI: give x86_64-linux-debug a little more time
2023-01-17 17:21:22 -07:00
Andrew Kelley
bbab4bedac
Merge pull request #14350 from FnControlOption/bundle
...
std.crypto.Certificate.Bundle: clear bundle before macOS rescan
2023-01-17 19:04:55 -05:00
Veikka Tuominen
841b38aae8
tokenizer: detect null as non-first byte of a line comment
...
Line comments do not produce actual tokens so they need special
handling for null bytes.
Closes #14346
2023-01-17 20:39:19 +02:00
Veikka Tuominen
fc066992d9
Sema: do not create slices with undefined pointers
...
The undef pointer ended up being zero on wasm32.
2023-01-17 20:28:43 +02:00
Veikka Tuominen
3b2c421102
Sema: fix bad boolean logic for cast to null panic
...
Closes #14349
2023-01-17 20:28:43 +02:00
Veikka Tuominen
e04547642a
Sema: promote smaller float types passed to variadic functions
...
Closes #6854
2023-01-17 20:28:43 +02:00
Veikka Tuominen
14f03fbd16
AstGen: reset source cursor before generating pointer attributes
...
These attributes can appear in any order but AstGen expects the source
cursor to be incremented in a monotonically increasing order.
Closes #14332
2023-01-17 20:28:43 +02:00
Veikka Tuominen
24646b8b5d
windows x86_64 C ABI: pass byref structs as byref_mut
2023-01-17 20:28:43 +02:00
Veikka Tuominen
8b35f09f4a
Sema: resolve lazy values in switch prong items
...
Closes #14330
2023-01-17 20:28:43 +02:00
Veikka Tuominen
6b037bad59
Sema: ignore dependency loops in typeinfo decls
...
This matches stage1 behavior.
Closes #14322
2023-01-17 20:28:43 +02:00
Veikka Tuominen
94be9dcc7f
enable passing compile error test
2023-01-17 20:28:43 +02:00
Veikka Tuominen
6e067dc050
llvm: do not offset packed struct field pointers if they have a host size
...
Closes #14261
2023-01-17 20:28:42 +02:00
Manlio Perillo
06e9b2c4e3
langref: document UTF-8 BOM handling
...
The current compiler ignores the UTF-8 BOM if it is at the start of the
file, and disallows it anywhere else. Document it in the Source Encoding
section.
2023-01-17 20:07:53 +02:00
Andrew Kelley
7b68b76326
CI: additionally test debug builds on Windows
2023-01-17 13:06:07 -05:00
Manlio Perillo
0973f36389
langref: add the new addrspace keyword
...
Add the new addrspace keyword in the Keyword Reference section, without
documentation.
Move the linksection keyword in order to keep the keywords list sorted.
2023-01-17 20:04:37 +02:00
fn ⌃ ⌥
2623e1c4d6
Add std.os.darwin.cssm
2023-01-17 09:51:39 -08:00
fn ⌃ ⌥
faf0fe4305
std.crypto.Certificate.Bundle: use parseCert in rescanWindows
2023-01-17 08:59:38 -08:00
fn ⌃ ⌥
40c400ec9e
std.crypto.Certificate.Bundle: clear bundle before macOS rescan
2023-01-17 08:58:06 -08:00