joachimschmidt557
5ad501c00b
stage2 aarch64: add codegen/aarch64.zig
2020-11-11 14:34:53 +01:00
Jonas Carpay
c9dc30daf7
Fix backticked code in langref
2020-11-11 15:34:01 +02:00
LemonBoy
f0b1b74d21
stage1: Avoid resolving type entry in [0]T
...
The logic was already there but this rule was only applied in some
places, apply it in the remaining code paths.
Closes #7058
2020-11-11 13:53:24 +02:00
Andrew Kelley
8b9195282e
Merge pull request #7044 from semarie/openbsd-simples
...
Simple sets of commits for OpenBSD support
2020-11-10 18:06:30 -05:00
Andrew Kelley
6904cd828e
add missing -m<os>-version-min CLI args to clang
...
This fixes some code generation issues when targeting macOS and
compiling C/C++ code.
2020-11-10 15:24:10 -07:00
Andrew Kelley
3110b21c4b
std.Target: bump default version max for macos
2020-11-10 15:24:10 -07:00
LemonBoy
4d4ab1e69a
stage1: Fix comparison of unions containing zero-sized types
...
The code tried to be too smart and skipped the equality (returning true)
if the payload type was zero-sized.
This optimization is completely wrong when the union payload is a
metatype!
Fixes #7047
2020-11-10 17:21:49 -05:00
Sébastien Marie
678bd4fc89
"ResetEvent" test seems to have a too short timeout: the test is failing randomly on OpenBSD
...
raise the timeout to 100ms to be sure that if it fails (timeout is returned) it is due to a real problem.
the test shouldn't be longer: it will wait more time only on failure.
2020-11-10 05:29:53 +00:00
Sébastien Marie
9d306e5c77
openbsd: mutex or cond destroy function could return EINVAL
2020-11-10 05:26:35 +00:00
Sébastien Marie
8784c7b581
openbsd: proper implementation for Thread.cpuCount()
2020-11-10 05:25:59 +00:00
Sébastien Marie
20b19d0092
openbsd: add time definitions for gettimeofday()
2020-11-10 05:24:56 +00:00
Sébastien Marie
e4bc595bc6
openbsd: add sockets constants
2020-11-10 05:24:03 +00:00
Sébastien Marie
17276df488
openbsd: add dlfcn.h definitions for dlopen()
2020-11-10 05:23:13 +00:00
Andrew Kelley
06a3a69e6f
main: updateModule returns an error when there are any compile errors
...
closes #6976
2020-11-09 20:51:09 -07:00
daurnimator
73f3f01670
Fix json parser close tracking ( #6865 )
...
* std: fix json parsing with unmatched closing tokens
* std: fix swapped json parsing errors
2020-11-09 18:29:02 -05:00
xackus
15dbab9a0c
std: json: fix misleading endianness conversion
2020-11-09 18:27:07 -05:00
LemonBoy
e00356d6b1
stage1: Print correct error message for vector @intCast
2020-11-09 18:24:48 -05:00
Frank Denis
427a212e38
Don't prevent compilation on platforms where debug info is unsupported
...
We don't support debug information on platforms that are not tier-1,
but it shouldn't be a hard error that completely prevents compilation.
2020-11-09 18:22:50 -05:00
Alexandros Naskos
fc67e5f843
Windows TLS startup symbols are already provided by libcrt when linking against libc
2020-11-09 17:46:46 -05:00
Jakub Konka
0bc9fd5e8e
Merge pull request #7035 from ziglang/macos-posix-headers
...
macOS libc headers: add POSIX headers
2020-11-09 23:41:55 +01:00
Andrew Kelley
83a1523b1a
std.ResetEvent: disable flaky test on Windows
...
See #7009
2020-11-09 15:33:40 -07:00
Jakub Konka
db2ac8ae49
macOS libc headers: add objc/message.h and runtime.h
2020-11-09 19:57:07 +01:00
Jakub Konka
09cc61bfe4
Add more missing libc headers used by frameworks
...
See
76f22c3905 .
2020-11-09 18:47:09 +01:00
Jakub Konka
267116d626
macOS libc headers: add mach/clock.h
...
LLVM depends on it.
2020-11-09 15:02:03 +01:00
data-man
99932042dc
Fix reduce documentation
2020-11-09 11:47:43 +01:00
Andrew Kelley
9af53f8e02
langref: add 0.7.0 link
2020-11-09 00:37:35 -07:00
Andrew Kelley
e78e0f57be
macos: avoid --export-dynamic when using system linker
2020-11-08 23:04:38 -08:00
Andrew Kelley
b0cbd0ad2d
macos libc headers: add more
...
these new files are generated by recursively including:
sysexits.h
mach/mach.h
sys/attr.h
sys/mount.h
crt_externs.h
execinfo.h
all of which are depended on by LLVM libraries.
2020-11-08 21:12:18 -08:00
Andrew Kelley
cd221b9df9
macOS libc headers: add sys/sysctl.h
...
libcxx depends on it
2020-11-08 20:26:33 -08:00
Andrew Kelley
16b7be34a1
macOS libc headers: add sys/param.h
...
libcxx depends on it
2020-11-08 20:21:29 -08:00
Andrew Kelley
1213e26ba8
macOS libc headers: add mach-o/dyld.h
...
libcxx depends on it
2020-11-08 20:21:29 -08:00
Andrew Kelley
25e78bd007
add copyfile.h
...
libcxx depends on it
2020-11-08 20:21:29 -08:00
Andrew Kelley
fdd775b3bf
macOS libc headers: add xlocale.h and Block.h
...
These are both included by libcxx.
2020-11-08 20:21:29 -08:00
Andrew Kelley
eed5814d75
macOS libc headers: add POSIX headers
2020-11-08 20:21:29 -08:00
Andrew Kelley
4d67c3d887
macOS: depend on bundled headers even for native
...
This is an alternate fix for #6773 . Reverts
872bc787b56f71e53c80f4681523bc8356915b71.
2020-11-08 18:51:12 -07:00
Alexandros Naskos
4236518e3a
Merge pull request #7033 from jedisct1/bump0.7
...
Bump Zig version to 0.7.0
2020-11-09 00:52:51 +02:00
Frank Denis
9bc3442e41
Bump Zig version to 0.7.0
2020-11-08 23:50:44 +01:00
Andrew Kelley
0c90ccc297
Release 0.7.0
0.7.0
2020-11-08 12:02:09 -07:00
joachimschmidt557
03ae77b8b0
stage2 ARM: miscellaneous improvements
2020-11-07 17:27:23 +01:00
Alexandros Naskos
5430642fa0
Merge pull request #7008 from xackus/minor-fixes
...
change debug.assert to testing.expect in tests
2020-11-07 11:34:51 +02:00
Andrew Kelley
67ea47babd
Revert "update runtime safety test case - unsigned-signed vector cast"
...
This reverts commit 663f0b399c5f4e2528a969fba6cd58d8f9784f5a.
The behavior appears to be inconsistent between running locally and on
the CI.
I suspect it could be based on what vector CPU features are available.
2020-11-06 18:58:10 -07:00
Andrew Kelley
663f0b399c
update runtime safety test case - unsigned-signed vector cast
...
now it returns "integer cast truncated bits" instead of "attempt to cast
negative value to unsigned integer" which I think is correct.
2020-11-06 17:15:05 -07:00
Andrew Kelley
ceaa569bfa
disable flaky file locking test on Windows
...
See #7010
2020-11-06 17:00:51 -07:00
Andrew Kelley
c923f74fc9
std.ResetEvent: disable flaky test on macOS
...
See #7009
2020-11-06 16:46:30 -07:00
xackus
c9fa57541b
remove outdated comment
2020-11-06 22:58:58 +01:00
xackus
5c8f7f81cd
change debug.assert to testing.expect in tests
2020-11-06 22:48:54 +01:00
Andrew Kelley
e5fab3ba68
update musl sources to 1.2.1
2020-11-06 14:13:57 -07:00
Andrew Kelley
dba94f453a
update musl headers to 1.2.1
2020-11-06 13:53:47 -07:00
Andrew Kelley
008dd90f1f
update process_headers tool
2020-11-06 13:51:33 -07:00
Jay Petacat
030f00391a
std: Introduce SemanticVersion data structure
...
This will parse, format, and compare version strings following the
SemVer 2 specification. See: https://semver.org
Updates #6466
2020-11-06 15:07:48 -05:00