Andrew Kelley
9b7f438882
convert debug safety tests to zig build system
2017-04-19 14:41:59 -04:00
Andrew Kelley
d1e01e43d3
convert assemble and link tests to zig build system
2017-04-19 14:00:12 -04:00
Andrew Kelley
666435195f
update zig build help text when no build.zig found
2017-04-19 04:36:48 -04:00
Andrew Kelley
35d60eb4e6
remove unused test code
2017-04-19 04:28:59 -04:00
Andrew Kelley
d0a17b6937
convert std lib tests to zig build system
2017-04-19 04:12:22 -04:00
Andrew Kelley
10525b869d
convert build examples tests to zig build system
2017-04-19 01:45:46 -04:00
Andrew Kelley
37b9a2e6a4
convert compare-output tests to use zig build system
2017-04-19 01:15:20 -04:00
Andrew Kelley
237dfdbdc6
error when building exe with no entry point
...
closes #30
2017-04-18 14:04:48 -04:00
Andrew Kelley
6f0f8a92ec
bail out of analysis on first error during comptime eval
...
prevents an error during comptime eval from printing a
large number of compile errors
2017-04-18 04:02:36 -04:00
Andrew Kelley
9021bb7969
std.rand API follows idiomatic convention for init
2017-04-18 02:47:10 -04:00
Andrew Kelley
a791417552
add `@fieldParentPtr` builtin function
...
closes #320
2017-04-18 02:28:05 -04:00
Andrew Kelley
407916cd2f
rename `@intType` to `@IntType` to follow convention
...
closes #327
2017-04-18 00:05:09 -04:00
Andrew Kelley
def4fbc9ab
Merge branch 'raulgrell-master'
2017-04-17 20:15:39 -04:00
Andrew Kelley
c7852bd596
minor clean ups from previous commit
2017-04-17 20:15:19 -04:00
Raul Leal
3266585606
Implicit cast from T to %?T
...
closes #171
2017-04-17 19:55:56 -04:00
Andrew Kelley
2e0b114fdc
add compile error for intToPtr with a 0-bit ptr
...
See #323
2017-04-17 19:28:33 -04:00
Andrew Kelley
216e14891e
zig build system creates symlinks atomically
...
* add std.base64
* add std.os.rename
* add std.os.atomicSymLink
2017-04-17 19:08:41 -04:00
Andrew Kelley
401eed8153
build examples in ./run_tests
...
closes #325
2017-04-17 06:58:36 -04:00
Andrew Kelley
05b3082121
zig build system: progress toward install and uninstall
...
also:
* add std.os.path.join
* add std.os.deleteFile
2017-04-17 06:47:20 -04:00
Andrew Kelley
e4ec2d10c6
zig build system: implement custom command step
2017-04-17 06:47:20 -04:00
Andrew Kelley
47336abae3
improvements to zig build system and unwrap error safety
...
* zig build system: create standard dynamic library sym links
* unwrapping an error results in a panic message that contains
the error name
* rename error.SysResources to error.SystemResources
* add std.os.symLink
* add std.os.deleteFile
2017-04-17 06:47:20 -04:00
Andrew Kelley
d16ce67106
zig build system: ability to link against dynamic library step
2017-04-17 06:47:20 -04:00
Josh Wolfe
3a8490f7e9
add tests for implicit semicolon. closes #297
2017-04-14 16:29:42 -07:00
Josh Wolfe
3e93796e24
comptime ({}) should not get an implicit semicolon
...
closes #292 .
2017-04-14 16:09:01 -07:00
Andrew Kelley
5fdefe58e4
zig build system understands the concept of dependencies
...
See #204
2017-04-13 17:21:00 -04:00
Andrew Kelley
a6bd3d8ca2
move emacs/vim files to separate repos
2017-04-13 05:27:59 -04:00
Andrew Kelley
dcfa0e50dc
all internal functions get unnamed_addr attribute
2017-04-13 03:34:57 -04:00
Andrew Kelley
f2140efc52
Merge remote-tracking branch 'origin/parser'
2017-04-13 03:09:09 -04:00
Andrew Kelley
bf57d8a7e3
typedefpocalypse
...
closes #314
2017-04-13 03:07:58 -04:00
Josh Wolfe
356424916c
block statement lists never get fake expressions
...
instead blocks have a field that encodes whether the last statement ended with
a semicolon.
2017-04-12 23:22:32 -07:00
Josh Wolfe
919910312d
make it an error to ignore a statement's value
...
this makes {1;} an error.
2017-04-12 22:21:35 -07:00
Andrew Kelley
bf67427c67
fix crash when using zig to link
...
without explicit dynamic linker
2017-04-13 01:15:25 -04:00
Andrew Kelley
41144a8566
ability to inline at function callsite
...
closes #306
2017-04-13 00:13:54 -04:00
Andrew Kelley
f043e0e85c
build: ignore libLLD.so when it is a broken symlink
...
closes #318
2017-04-13 00:12:44 -04:00
Andrew Kelley
403eb92a62
try harder to find lld
2017-04-11 06:44:45 -04:00
Andrew Kelley
2864359950
zig build system writes template build.zig file when none exists
...
see #204
2017-04-11 06:14:46 -04:00
Andrew Kelley
7f47b0c271
run alwaysinline pass in debug mode
...
before this commit, the optimized IR code that is displayed in
--verbose mode is not actually what gets emitted to an object
file.
that is now corrected, and we make sure to run the alwaysinliner
pass even in debug mode, so you can rely on "inline" keyword
inlining a function, guaranteed.
See #306
2017-04-11 03:37:44 -04:00
Andrew Kelley
11a6550324
fix some -Wconversion errors
2017-04-10 20:02:39 -04:00
Andrew Kelley
34eff50326
fix for loops not working at compile-time
...
closes #315
2017-04-10 03:00:19 -04:00
Andrew Kelley
0e77b0ac89
fix mangling exported global variables
...
closes #316
2017-04-10 02:32:11 -04:00
Andrew Kelley
095591f0b0
add enumTagName builtin function
...
closes #299
2017-04-08 17:45:22 -04:00
Andrew Kelley
7611ed3484
allow implicit cast from `[N]T` to `&const []const T`
...
closes #296
2017-04-07 17:56:01 -04:00
Andrew Kelley
5eb78ba177
fix std.mem.IncrementingAllocator
...
updating ptr casting because of previous commit
2017-04-07 15:38:31 -04:00
Andrew Kelley
f7e9d7aa5d
ability to implicitly cast integer literal to &const Int
...
where Int is an integer type
also introduce `@intToPtr` builtin for converting a usize
to a pointer. users now have to use this instead of `(&T)(int)`.
closes #311
2017-04-07 15:35:38 -04:00
Andrew Kelley
ffb4852012
add compile error for the bug of unable to call var ags at compile time
...
See #313
2017-04-07 00:33:19 -04:00
Andrew Kelley
a3de550d3b
fix var args having wrong index when runtime param before it
...
closes #312
2017-04-06 21:00:49 -04:00
Andrew Kelley
273cebdf4d
peer resolve types [N]T, [M]T as []const T
...
closes #125
2017-04-06 18:07:38 -04:00
Andrew Kelley
47f58d6d02
fix runtime struct initialization of bitfield
...
closes #308
2017-04-06 15:04:18 -04:00
Andrew Kelley
10dbc735fe
zig build: use -D for options instead of -O
...
because -O is usually optimization level
2017-04-06 13:59:11 -04:00
Andrew Kelley
6fbe1632d0
Update zig build system to support user defined options
...
* Fix assertion failure when switching on type.
Closes #310
* Update zig build system to support user defined options.
See #204
* fmt.format supports {sNNN} to set padding for a buffer arg.
* add std.fmt.bufPrint and std.fmt.allocPrint
* std.hash_map.HashMap.put returns the previous value
* add std.mem.startsWith
2017-04-06 05:34:04 -04:00