Commit Graph
25 Commits
Author SHA1 Message Date
Joachim Schmidt 4c0711be78 Update to latest zig trunk (#2832)
Unused function parameters (used in the custom panic handler) are now
compile errors.
2021-07-31 20:21:44 +02:00
Rubén Rincón BlancoandMatt Godbolt 0fca6c8c0b Adds Zig-args (#2735)
* Adds Zig-args

This is the first Zig library added to the site, so this implementation
might be broken in unexpected ways

See issue #2525

* Update lib/base-compiler.js

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-06-25 15:52:05 +02:00
Patrick Quist d604f06e26 exceptions for zig versions < 0.8.0 2021-06-09 22:04:54 +02:00
Alexandros Naskos 80763a2574 Fixed zig trunk LLVM IR output (#2327)
* Fixed zig trunk LLVM IR output

* Filter all emit compiler options
2020-11-13 08:24:13 -06:00
Alexandros Naskos 1ecfa68e09 Update Zig to use the new CLI (#2254)
* Fixed zig.js for the new self hosted command line interface

* Broke up long line into two
2020-10-04 19:20:44 +02:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton bac07fea6d Eliminate all dynamic require statements (#2230) 2020-09-25 11:21:30 -04:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
RabsRincon b7fc8b1759 Ensure backend options are always generated 2020-06-15 12:47:31 +02:00
RabsRincon 91c3362840 Stop zig from crashing if semver is not set
Closes #1710
2019-12-08 04:08:59 +01:00
Haze Booth eb3df6f260 Fix ASM output on for the zig compiler 2019-11-27 21:43:59 -05:00
emekoi aa65c04f80 added llvm-ir emit support for zig 2019-10-17 09:12:06 -05:00
Alessandro Vergani 9c96d783ca Fix zig output filename
Fixes #1409
2019-10-09 17:21:27 +02:00
Partouf c5ccd7dfba disable rpath for zig, doesn't work 2019-08-21 03:30:30 +02:00
RabsRincon 27536f3422 Fix Zig trunk
Closes #1304
2019-03-20 16:20:24 +01:00
RabsRincon e721c2310e Fix Zig semver check 2019-03-17 12:49:41 +01:00
RabsRincon d414896bb4 Fix newer Zig versions
- #1304 should be fixed by this commit,
but no way to test it outside beta (Can't test zig locally)
2019-03-17 12:38:46 +01:00
Kārlis Seņko 1986a80691 Enable cfg for x86 LLVM based compilers and gcc. 2019-01-09 23:04:14 +02:00
Partouf d7e4e7ac3d make zig executable 2018-11-06 21:22:14 +01:00
Partouf 45b97cb95f exec for zig 2018-11-06 20:33:01 +01:00
RabsRincon 09d9fa583d Update CONTRIBUTORS.md and Zig compiler styling 2018-10-03 19:08:16 +02:00
Marc Tiehuis 291c7c09e2 Fix zig 0.2.0 compilation failures
There is a bug in the zig 0.2.0 compiler when emitting an explicit
assembly output file. Binary dumping using objdump is required.
2018-10-02 21:24:52 +13:00
Marc Tiehuis 7f08a4ec30 Stop Zig compiler creating C header files
Fixes #1083.
2018-09-24 21:12:57 +12:00
Marc Tiehuis 5329bf7129 Filter potentially dangerous zig user options
`--cache-dir` modifies the output cache directory
 `--name` modifies the output name
 `--output(-h)?` modifiers the output generated path/header
 `--verbose-*` emits compiler debug output and is not relevant
 `--mllvm` forwards arguments directly to llvm
2018-09-11 22:11:40 +12:00
Marc Tiehuis ffd04ac764 Add zig support 2018-09-09 23:36:17 +12:00