Jacob Young
0c99ba1eab
Merge pull request #17637 from jacobly0/x86_64-test-std
...
x86_64: start to enable `test-std` and `test-compiler-rt` testing
2023-10-22 08:06:47 -04:00
Nameless
93e1f8c8e5
std.http.Client: documentaion fixes
2023-10-21 20:53:00 -05:00
Nameless
363d0ee5e1
std.http: rename start->send and request->open to be more inline with operation
2023-10-21 20:52:59 -05:00
Nameless
544ed34d99
std.http.Server: improve documentation, do -> start
...
Response.do was renamed to Response.start to mimic the
naming scheme in http.Client
2023-10-21 20:52:59 -05:00
Nameless
0eef21d8ec
std.http.Client: add option to disable https
...
std_options.http_connection_pool_size removed in favor of
```
client.connection_pool.resize(client.allocator, size);
```
std_options.http_disable_tls will remove all https capability from
std.http when true. Any https request will error with
`error.TlsInitializationFailed`.
Solves #17051 .
2023-10-21 20:52:58 -05:00
Nameless
e1c37f70d4
std.http.Client: store *Connection instead of a pool node, buffer writes
2023-10-21 20:52:58 -05:00
Nameless
1afeada2d9
std.http.Client: enhance proxy support
...
adds connectTunnel to form a HTTP CONNECT tunnel to the desired host.
Primarily implemented for proxies, but like connectUnix may be called by
any user.
adds loadDefaultProxies to load proxy information from common
environment variables (http_proxy, HTTP_PROXY, https_proxy, HTTPS_PROXY,
all_proxy, ALL_PROXY).
- no_proxy and NO_PROXY are currently unsupported.
splits proxy into http_proxy and https_proxy, adds headers field for
arbitrary headers to each proxy.
2023-10-21 20:52:58 -05:00
Andrew Kelley
ecfb18286a
migrate make_ptr_const to new anonymous decl mechanism
...
Instead of creating Module.Decl objects, directly create InternPool
pointer values using the anon_decl Addr encoding.
The LLVM backend needed code to notice the alignment of the pointer and
lower accordingly. The other backends likely need a similar change.
2023-10-21 21:38:41 -04:00
Robin Voetter
6281ad91df
spirv: self-referential pointers via new fwd_ptr_type
...
Its a little ugly but it works.
2023-10-21 17:46:54 +02:00
Robin Voetter
1deec09f03
spirv: improve union operations
...
This removes the strategy where union with different active
fields would be generated, and instead simply pointer casts
the active field type where required. This also allows removing
spv.ptrType and using self.ptrType instead, and allows caching
all union types (because there is only the canonical one).
2023-10-21 17:46:53 +02:00
Jacob Young
920e9668dd
x86_64: enable fixed behavior test
2023-10-21 10:55:41 -04:00
Jacob Young
70c8e7f91d
x86_64: disable failing tests, enable test-compiler-rt testing
2023-10-21 10:55:41 -04:00
Jacob Young
32e85d44eb
x86_64: disable failing tests, enable test-std testing
2023-10-21 10:55:41 -04:00
Jacob Young
2e6e39a700
x86_64: fix bugs and disable erroring tests
2023-10-21 10:55:41 -04:00
Jacob Young
9358a7528f
x86_64: fix crashes
2023-10-21 10:55:41 -04:00
Jakub Konka
b8ff989fa0
elf: force pie in tests affected by QEMU bug
2023-10-19 19:46:23 +02:00
Jakub Konka
1bbe521074
elf: fix flaky link tests
2023-10-19 03:34:47 +02:00
Jacob Young
d8f7c79298
x86_64: improve inline assembly support
...
* C++-style comments
* indirect call operands
* fix misleading immediate debug formatting
2023-10-18 13:57:28 -04:00
Robin Voetter
c3120d5089
Merge pull request #17577 from alichraghi/spirv-1
...
spirv: switch on bool
2023-10-18 16:28:13 +02:00
Robin Voetter
24b065a6a8
Merge pull request #17561 from alichraghi/spirv-0
...
spirv: memcpy
2023-10-18 15:38:30 +02:00
Andrew Kelley
aeadcb3918
disable flaky linker test
...
tracked by #17576
2023-10-17 21:46:13 -07:00
Andrew Kelley
149f2f8adb
Merge pull request #17524 from Vexu/aro-translate-c
...
Add ability to test Aro based `translate-c`
2023-10-18 00:32:59 -04:00
Ali Chraghi
e5d5c1d423
spirv: switch on bool
2023-10-18 02:31:16 +03:30
Andrew Kelley
25400fadf8
disable two flaky link tests
...
Tracking issue #17576
2023-10-17 16:00:14 -07:00
Bogdan Romanyuk
ad168db727
Sema: disallow @intFromPtr for comptime-only types
2023-10-17 20:05:55 +00:00
Jakub Konka
eb5276c94e
Merge pull request #17556 from ziglang/elf-link-zig-proper
...
elf: port 99% of zld ELF linker to Zig proper
2023-10-17 17:36:40 +02:00
Ali Chraghi
6d8a979265
spirv: memcpy
2023-10-17 13:02:30 +03:30
Jakub Konka
666e9df170
elf: ensure we build with -fPIE when testing init array order
2023-10-17 11:30:56 +02:00
Veikka Tuominen
96f9e20152
add c_frontend to translate-c cache hash
2023-10-17 11:55:17 +03:00
Veikka Tuominen
e765495b11
tests: translate-c and run-translated-c to the test harness
2023-10-17 11:55:17 +03:00
Ali Chraghi
e44152e252
spirv: fieldParentPtr
2023-10-16 20:27:28 -04:00
Jakub Konka
77443ac2b5
elf: skip tests on foreign architectures
2023-10-16 21:45:28 +02:00
Jakub Konka
5423778f6f
elf: add self-hosted tests
2023-10-16 19:33:06 +02:00
Jakub Konka
716a45a209
elf: use findFreeSpace mechanics to allocate object-extracted segments
2023-10-16 19:33:05 +02:00
Jakub Konka
b3f40c35dc
elf: fix testTlsOffsetAlignment test
2023-10-16 19:33:05 +02:00
Jakub Konka
67a02bee2c
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
81b68c7465
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
898c87bd2a
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
1fe0fd69e0
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
9487007ffe
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
44f3085851
elf: refactor tests and disable currently impossible combinations
2023-10-16 19:33:05 +02:00
Jakub Konka
df656c4eef
elf: test exporting symbols in exes
2023-10-16 19:33:05 +02:00
Jakub Konka
f2ad71991a
elf: test --export-dynamic flag
2023-10-16 19:33:05 +02:00
Jakub Konka
20980b33e3
elf: test entry point
2023-10-16 19:33:05 +02:00
Jakub Konka
9861a9ea75
elf: test various copyrel edge cases
2023-10-16 19:33:05 +02:00
Jakub Konka
b6006df565
elf: refactor canonical PLT test
2023-10-16 19:33:05 +02:00
Jakub Konka
c940735c4d
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
149dd82d54
elf: add --as-needed test
2023-10-16 19:33:05 +02:00
Jakub Konka
7ff9461b88
elf: test large alignment of funcs in exe
2023-10-16 19:33:05 +02:00
Jakub Konka
11bdfe1179
elf: test large alignment of funcs in DSO
2023-10-16 19:33:04 +02:00