meme
308e7d5314
fix building static Android executables
2019-09-27 17:33:07 -04:00
Andrew Kelley
dc299166cf
std.os.fstat: EINVAL => unreachable
...
Related: #3291
2019-09-27 17:17:24 -04:00
meme
f7bf61a983
support Android NDK and bionic
2019-09-27 16:51:42 -04:00
Andrew Kelley
878aece87b
Merge branch 'LemonBoy-fix-3138'
...
closes #3213
2019-09-27 15:58:39 -04:00
Andrew Kelley
09575bc0d6
fully specify padding bytes when necessary
...
This is what I was going for originally - either we understand that
LLVM's padding is sufficient, or we do the entire padding ourselves.
2019-09-27 15:53:30 -04:00
LemonBoy
67bd0267db
Correct calculation of padding length in struct
...
Make sure the resulting type is in-sync with the one produced and used
by LLVM.
Fixes #3138
2019-09-27 15:39:19 -04:00
Andrew Kelley
70e934f116
Merge pull request #3326 from LemonBoy/misc-misc
...
Miscellaneous and very small patches regarding mipsel and musl libc
2019-09-27 14:53:52 -04:00
LemonBoy
9ad0541f2c
Enable mipsel+libc tests on CI
2019-09-27 18:44:49 +02:00
LemonBoy
a220648198
Backport patch for Musl libc
...
Allows musl to compile for mipsel targets.
https://www.openwall.com/lists/musl/2019/09/27/1/2
2019-09-27 18:20:00 +02:00
LemonBoy
5aaa7d0fbb
Avoid truncating mmap2 offsets if not multiple of page size
2019-09-27 18:18:38 +02:00
Andrew Kelley
805f9b309b
add regression test for alignment of constants
...
closes #1741
2019-09-27 10:58:39 -04:00
Andrew Kelley
a1a3e46e0a
Merge pull request #3323 from nrdmn/uefi
...
some minor UEFI improvements
2019-09-27 10:41:26 -04:00
Nick Erdmann
4527110e02
std/os/uefi: add some hii support
2019-09-27 07:56:14 +02:00
Nick Erdmann
a4f324e9ea
std/os/uefi: add exitBootServices and allocatePool
2019-09-27 07:56:02 +02:00
Andrew Kelley
23a82b5ffd
fix mipsel regression in previous commit
...
I think that should actually be a compile error, it's a usingnamespace
that depends on itself. This workaround is fine for now.
2019-09-26 21:38:04 -04:00
Andrew Kelley
ebe79329a2
fix some linux declarations not getting exposed
2019-09-26 18:49:37 -04:00
Andrew Kelley
4d65373a3d
Merge pull request #3311 from LemonBoy/mips
...
Initial support for mipsel architecture
2019-09-26 13:44:36 -04:00
LemonBoy
2c8864f634
Don't warn about redeclaration for the same var node
...
Closes #3316
2019-09-26 13:39:09 -04:00
Andrew Kelley
b89a09af4b
docgen: add "process terminated by signal" to exe_err
2019-09-26 13:11:07 -04:00
LemonBoy
a94372231c
Errno changes for MIPS
2019-09-26 18:07:39 +02:00
Andrew Kelley
94e9b9c625
docs: mention release-small along with release-fast
2019-09-26 12:05:49 -04:00
LemonBoy
dfb4446d09
Add comments about the test cases that have been disabled
2019-09-26 17:42:58 +02:00
LemonBoy
c8e4108c5b
Export _start as __start for MIPS targets
2019-09-26 17:13:57 +02:00
Michael Dusan
efea7958f8
doc: usingnamespace imports only public decls
2019-09-26 10:55:13 -04:00
LemonBoy
a9be62f085
Fix wrong IOCTL value
2019-09-26 11:49:49 +02:00
LemonBoy
4ebcf64864
Initial support for mipsel architecture¬
2019-09-26 09:31:55 +02:00
Andrew Kelley
2f20833097
add -DZIG_SKIP_INSTALL_LIB_FILES cmake option
...
closes #2221
2019-09-26 02:21:29 -04:00
Andrew Kelley
68bb394570
Merge pull request #3315 from ziglang/mv-std-lib
...
Move std/ to lib/std/
2019-09-26 01:54:45 -04:00
Andrew Kelley
4637e8f969
zig additionally looks for lib/std/std.zig
...
previously zig would search up directory parents for
lib/zig/std/std.zig. It still does that, but now it also accepts
lib/std/std.zig. This will probably be how we start shipping windows
.zip files, since the extra directory is pointless.
It also means you can run zig binaries from subdirectories of the zig
source tree without lib files being installed.
2019-09-26 00:30:51 -04:00
Andrew Kelley
dc7016344e
remove --override-std-dir. fix issues caused by moving std lib
2019-09-25 23:59:07 -04:00
Andrew Kelley
ed36dbbd9c
mv std/ lib/
...
that's all this commit does. further commits will fix cli flags and
such.
see #2221
2019-09-25 23:35:41 -04:00
Andrew Kelley
6128bc728d
macos ci: display system info before running anything
2019-09-25 22:50:21 -04:00
Andrew Kelley
568c183d2a
docgen: slightly better caching
2019-09-25 17:59:52 -04:00
Andrew Kelley
f112e8af27
Merge pull request #3312 from ziglang/armv8-linux-musleabihf
...
Enable test coverage for armv8-linux-musleabihf
2019-09-25 17:04:51 -04:00
Andrew Kelley
d1705baa74
enable test coverage for armv8-linux-musleabihf
...
* fix libc prototypes of offsets to have correct integer sizes and
signedness. This gets all behavior tests to pass for
armv8-linux-musleabihf
* fix linux mmap syscall to have correct integer size and signedness
for offset
* disable failing armv8-linux-musleabihf std lib tests. See 3289. I
suspect compiler-rt issue. Note these tests fail with this target
triple regardless of whether musl is actually linked (-lc).
2019-09-25 16:21:04 -04:00
Andrew Kelley
40e77dad83
musl [PATCH] arm: fix setjmp and longjmp asm for armv8-a
...
From: Szabolcs Nagy <szabolcs.nagy@arm.com>
armv8 removed the coprocessor instructions other than cp14, so
on an armv8 system the related hwcaps should never be set.
new llvm complains about the use of coprocessor instructions in
armv8-a mode (even though they are never executed at runtime),
so ifdef them out when musl is built for armv8.
<dalias> i think the patch looks ok
2019-09-25 15:15:52 -04:00
Andrew Kelley
dc3c4197c6
disable known-to-be-failing tests for linux-aarch64-gnueabihf
...
See #3288 . Root cause appears to be #3291 .
2019-09-25 14:17:46 -04:00
Andrew Kelley
c9690916e5
fix building musl on eabihf abis, incorrect include dirs
...
See #3286 . The issue is not fully solved however because this has
uncovered another issue.
2019-09-25 14:03:26 -04:00
Vexu
14ae23326e
ran zig fmt on stdlib
2019-09-25 12:44:11 -04:00
Vexu
29e6541db1
add noasync to zig fmt
2019-09-25 12:44:11 -04:00
LemonBoy
3907e3b675
Fix llseek behavior
2019-09-25 12:10:58 -04:00
Andrew Kelley
48c9e17aa1
Merge pull request #3308 from LemonBoy/riscv-things
...
Miscellaneous RISC-V related commits
2019-09-25 12:08:47 -04:00
LemonBoy
a56b767c35
Add DTP bias according to RISCV ABI
2019-09-25 18:07:17 +02:00
LemonBoy
453157595e
Correct some RISCV64 bits
2019-09-25 09:30:44 +02:00
Andrew Kelley
993d5bc9c9
add docs for usingnamespace
...
closes #1589
2019-09-24 21:23:12 -04:00
Andrew Kelley
53210b2304
better default enabled features for riscv
...
Until ability to specify target CPU features (#2883 ) is done, this
commit gives riscv target better default features.
This side-steps #3275 which is a deficiency in compiler-rt when features
do not include 32 bit integer division.
With this commit, RISC-V compiler-rt tests pass and Hello World works
both pure-zig and with musl libc.
2019-09-24 20:56:04 -04:00
Michael Dusan
9983501ff2
add VarDecl support for struct-method call syntax
...
implements #3306
2019-09-24 19:24:48 -04:00
Andrew Kelley
56b1818beb
docgen: test blocks support linking libc
2019-09-24 11:41:19 -04:00
Andrew Kelley
c0b937ba12
docgen: slightly cleaner display of libc cli args
2019-09-24 11:36:59 -04:00
LemonBoy
5fb7af26ab
Fix result loc unwrapping with optional in error union
...
Fixes #2899
2019-09-24 01:09:26 -04:00