aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
AgeCommit message (Collapse)Author
2016-09-19use size_t for indexesAndrew Kelley
protect against incorrect copies in debug mode
2016-09-18ability to specify -framework linker args for MacOSAndrew Kelley
2016-09-14darwin compat fixupsAndrew Kelley
- delete commented out code - delete redundant check for missing mmacosx-version-min/maxdir - add TODO comment in std library - rename 'os' to 'self' in io.zig - `openSelfExe` aborts on darwin instead of compile error - only allow warnings on the one parseh test that has `#include <stdint.h>`.
2016-09-14MacOSX compatibilityalter
- Implemented some syscall for MacOSX - tested on : El Capitan 10.11 x86_64 - make self hosted test run on macosx - modified run_test so it does not fail when parseh throws warnings (most of them are related to buildin types from gcc that arent defined in header files and unions) - making -mmacosx-version-min and -mios-version-min works like gcc (command line paramers have precedence over enviroment variables)
2016-05-12Add --zig-std-dirJosé Miguel Sánchez
2016-05-11recognize ar program and pass --gc-sections to ldAndrew Kelley
See #54
2016-05-07add debug safety for divisionAndrew Kelley
See #149
2016-03-01rewrite how importing worksAndrew Kelley
* Introduce the concept of packages. Closes #3 * Add support for error notes. * Introduce `@import` and `@c_import` builtin functions and remove the `import` and `c_import` top level declarations. * Introduce the `use` top level declaration. * Add `--check-unused` parameter to perform semantic analysis and codegen on all top level declarations, not just exported ones and ones referenced by exported ones. * Delete the root export node and add `--library` argument.
2016-02-17os: implement windows os layerAndrew Kelley
2016-02-16rename 'environ' to 'env_type'Andrew Kelley
environ appears to clash with another symbol in mingw land
2016-02-15first pass at linking on macosAndrew Kelley
2016-02-11add @compile_var("os") and @compile_var("arch")Andrew Kelley
2016-02-11ability to cross compileAndrew Kelley
hello_libc.zig can produce a windows build
2016-02-10cleanup target data organizationAndrew Kelley
2016-02-10targets command shows which ones are nativeAndrew Kelley
2016-02-10add "targets" command to list architectures, oses, abisAndrew Kelley
2016-02-08support overriding the dynamic linker argument to ldAndrew Kelley
2016-02-08support static linking against libcAndrew Kelley
2016-02-03basic support for building a test targetAndrew Kelley
2016-02-02build: fix libc path findingAndrew Kelley
2016-01-31add --library-path cli optionAndrew Kelley
2016-01-31delete bogus --help textAndrew Kelley
2016-01-31parseh understands types better and handles some situations betterAndrew Kelley
See #88 Also, includes partial implementation of typedef top level declaration. See #95 Also, fix function types. Previously the way we were deduping function type pointers was incorrect.
2016-01-29parseh properly ignores anonymous structsAndrew Kelley
and nodes get valid create_index values
2016-01-28parseh: add --c-import-warnings optionAndrew Kelley
2016-01-27move AST rendering code to separate fileAndrew Kelley
2016-01-27build command supports -isystem argumentAndrew Kelley
2016-01-27parseh correctly handles C's void typeAndrew Kelley
2016-01-27parseh: recognize typedef typesAndrew Kelley
and fix const qualifier on pointers
2016-01-27parseh works for simple functionsAndrew Kelley
2016-01-27upgrade to the libclang C++ APIAndrew Kelley
c_import creates a tmp .h file and parses it with libclang, reporting any errors found. See #88
2016-01-18Revert "delete parseh"Andrew Kelley
This reverts commit 18374ea8f18b6b48c53e6e7bd23d536ac2e8a807.
2016-01-15delete parsehAndrew Kelley
we'll have to switch to the clang C++ api anyway we'll revive this code later
2015-12-15when linking with libc use the C runtime libraryAndrew Kelley
2015-12-13fix incorrect debug info path to importsAndrew Kelley
2015-12-03parseh command, parses a C .h file and produces extern declsAndrew Kelley
2015-12-03add labels and gotoAndrew Kelley
2015-12-01add --color cli arg to override tty detectionAndrew Kelley
2015-11-30closer to multiple files workingAndrew Kelley
2015-11-30refactor code to prepare for multiple filesAndrew Kelley
verbose compiler output is now behind --verbose flag
2015-11-30factor analysis code out of codegenJosh Wolfe
2015-11-27add root export declaration which is overridable by command line optionsAndrew Kelley
2015-11-27add pub and export visibility modifiers and optimizationAndrew Kelley
2015-11-25fix the remaining TODOs in the sourceAndrew Kelley
2015-11-24debug/release modeAndrew Kelley
2015-11-24debug information for functionsAndrew Kelley
2015-11-24add unreachable expressionAndrew Kelley
now creating .o file from hello.zig correctly
2015-11-24write object file and fix void return typeAndrew Kelley
2015-11-23semantic analysis checks for multiple definitions of functionsAndrew Kelley
2015-11-23parsing hello.zig example with recursive descentAndrew Kelley
that was easy