aboutsummaryrefslogtreecommitdiff
path: root/src/target.cpp
AgeCommit message (Collapse)Author
2018-06-18msp430 target: c_long is always 32 bitsAndrew Kelley
closes #1125
2018-06-17add target C int type information for msp430 targetAndrew Kelley
closes #1125
2018-06-09support `--target-arch wasm32` (#1094)Ben Noordhuis
Add wasm32 support to the build-obj, build-exe and build-lib commands of the stage 1 compiler. Wasm64 should work transparently once it's supported in upstream LLVM. To export a function: // lib.zig - for exposition, not necessary for this example pub use @import("add.zig"); // add.zig export fn add(a: i32, b: i32) i32 { return a + b; } To import a function: // cube.zig extern fn square(x: i32) i32; export fn cube(x: i32) i32 { return x * square(x); }
2018-05-16OpenBSD has the same C integer sizes as LinuxAndrew Kelley
Thanks Jan S <jan.schreib@gmail.com> for this information closes #1016
2018-05-12add @newStackCall builtin functionAndrew Kelley
See #1006
2018-03-30find libc and zig std lib at runtimeAndrew Kelley
this removes the following configure options: * ZIG_LIBC_LIB_DIR * ZIG_LIBC_STATIC_LIB_DIR * ZIG_LIBC_INCLUDE_DIR * ZIG_DYNAMIC_LINKER * ZIG_EACH_LIB_RPATH * zig's reliance on CMAKE_INSTALL_PREFIX these options are still available as command line options, however, the default will attempt to execute the system's C compiler to collect system defaults for these values. closes #870
2018-03-13Add WebAssembly output workaround for LLVM 6Marc Tiehuis
2018-03-08Merge remote-tracking branch 'origin/master' into llvm6Andrew Kelley
2018-03-06unless hf is specified in target environ, assume soft floating pointAndrew Kelley
closes #804
2018-01-08Merge branch 'master' into llvm6Andrew Kelley
2018-01-06Darwin -> MacOSX, added Zen. See #438Andrea Orru
2017-11-06Merge remote-tracking branch 'origin/master' into llvm6Andrew Kelley
2017-11-03Add emit command-line option (#580)Marc Tiehuis
Add emit command-line option
2017-11-02add missing environmentAndrew Kelley
2017-11-02use llvm named structs for const values when possibleAndrew Kelley
normally we want to use llvm types for constants. but union constants (which are found inside enums) when they are initialized with the non-most-aligned-member must be unnamed structs. these bubble up to all aggregate types. if a constant of an aggregate type contains, recursively, a union constant with a non-most-aligned-member initialized, the aggregate typed constant must be unnamed too. this fixes all the asserts that were coming in from llvm master branch.
2017-11-02update to llvm masterAndrew Kelley
2017-09-30fix typo in target_can_exec logicAndrew Kelley
2017-09-30zig test on 64-bit windows runs 32-bit testsAndrew Kelley
2017-08-31add windows to test targetsAndrew Kelley
cross-compiling hello world with no libc for windows is working
2017-08-30test suite cross-compile builds tests for other targetsAndrew Kelley
2017-08-26update for llvm 5.0.0rc1Andrew Kelley
2017-08-06fix invalid target infoAndrew Kelley
2017-05-23building with mingw for windowsAndrew Kelley
2017-04-13fix crash when using zig to linkAndrew Kelley
without explicit dynamic linker
2017-04-10fix some -Wconversion errorsAndrew Kelley
2017-04-05add support to use zig as a linker driverAndrew Kelley
closes #243 I also added --grep to ./run_tests if you want to single out some specific tests
2017-03-10update to llvm 4.0Andrew Kelley
2017-02-05tell LLVM the target sub arch typeAndrew Kelley
2017-02-02make --target-os freestanding workAndrew Kelley
2016-09-19use size_t for indexesAndrew Kelley
protect against incorrect copies in debug mode
2016-09-04port to llvm 3.9Andrew Kelley
2016-08-17progress toward stack trace printingAndrew Kelley
2016-03-08update to llvm 3.8.0Andrew Kelley
2016-02-16rename 'environ' to 'env_type'Andrew Kelley
environ appears to clash with another symbol in mingw land
2016-02-15MacOS has the same int sizes as LinuxAndrew Kelley
Source: https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/64bitPorting/transition/transition.html
2016-02-13add windows C int sizesAndrew Kelley
2016-02-12c integer size takes into account architecture and OSAndrew 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-10add "targets" command to list architectures, oses, abisAndrew Kelley