Commit Graph
18 Commits
Author SHA1 Message Date
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