Commit Graph
349 Commits
Author SHA1 Message Date
Patrick Quist aa4ff7e7b4 TenDRA support for C (#2138)
* tendra support for C

* rename so we can later add a cpp version

* Update exec.js
2020-08-20 21:46:14 +02:00
Patrick Quist 07f83959d5 Add ptxas (#2102)
* add ptxas

* forgot to commit these

* reuse nvdisasm compatible parsing

* lintfixes
2020-08-07 18:31:38 +02: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
Patrick Quist 7befe688c2 bugfix (#2088) 2020-07-17 14:02:54 +02:00
Partouf dc2361291e bugfix fortran errors 2020-07-14 20:41:21 +02:00
Simon Hössjer 4df43dde81 Wsl fixes (#2012)
* Disable WINE on WSL

When Compiler Explorer runs from within WSL, it does not need WINE in
order to call Windows executables.

* Fix process working directories on WSL

This ensures that all working directories, when running the
compiler, are WSL compatible.

* Add test to check correct working directory on WSL
2020-06-20 20:39:01 +02:00
RabsRincon b7fc8b1759 Ensure backend options are always generated 2020-06-15 12:47:31 +02:00
Iain Buclaw 91297042a4 Pass -fsyntax-only when getting GCC options and test that -masm= is really supported (#2001)
* Pass -fsyntax-only when getting GCC options

Without this, the gcc driver will still attempt to invoke the assembler,
even though it is redundant to do so.

* Test that -masm= is both available and supported.

Targets such as i686-apple-darwin or x86_64-apple-darwin may have
-masm=intel present in --target-help, but any use of it will throw:

    error: ‘-masm=intel’ not supported in this configuration
2020-06-08 12:47:44 +02:00
Matt Godbolt 263ff0ed72 Support binary in rust.
Closes #509
2020-05-28 23:11:03 -05:00
Rubén Rincón Blanco afd30bcd66 Merge branch 'master' into go-archs 2020-05-25 13:27:15 +02:00
Patrick Quist 3338076a89 minimum effort support (#1979) 2020-05-20 13:07:11 +02:00
Ethan Slattery 7fcca14890 Ewavr (#1707)
* basic IAR EWAVR compiler support

* basic line number parsing for colored lines

* Better Line Number Parsing (line numbers are right aligned)

* remove unused imports in compiler object

* removed unused lines from asm-parser-ewavr.js since Travis complained about them

* Assorted fixes from code review

* update processAsm() method to work with new style after rebase

* rework EWAVR asm parser. IAR seems to be closer to msvc.

* filter section initialize labels as assembler directives

* Add documentation for EWAVR
2020-05-20 12:55:12 +02:00
Patrick Quist 5bc4e3b133 enables binary+execution for ADA (#1971)
* enables binary+execution for ADA

* generic bandaid for missing executables

* -eS commands are not errors

* support error annotations

* restore original default but add exec example

* re-enable rpath

* add tools
2020-05-20 12:54:34 +02:00
Kale Blankenship 9fe8dcdc9a Go: Add additional architectures
Use 'go build' instead of 'go tool compile' to more easily support
additional architectures.
2020-05-19 14:43:12 -07:00
Jascha Knack 8a32652b9f fix broken JavaCompiler 2020-04-26 23:23:06 +02:00
Austin Morton fabbbdee51 Fix python compiler implementation
Closes #1847
2020-02-25 02:42:33 -05:00
Dmitry Babokin cebf6ad536 Change default target for ISPC to avx2-i32x8 (#1846) 2020-02-22 14:24:19 +01:00
Matt Godbolt 717ea51a3e First wave of @apmorton suggestions and fixes 2020-01-28 21:34:52 -06:00
Matt Godbolt 6d24480646 win32 asyncify 2020-01-21 22:36:23 -06:00
Matt Godbolt a15a4dae0b Asyncify pascal 2020-01-21 22:05:02 -06:00
Matt Godbolt 1f86c641fd Asyncify nvcc 2020-01-21 22:00:31 -06:00
Matt Godbolt 0670f5792c Asyncify nim 2020-01-21 21:59:07 -06:00
Matt Godbolt cb08b7b5c0 Asyncify java 2020-01-21 21:50:07 -06:00
Matt Godbolt f25940c45e Asyncify fortran 2020-01-21 08:10:14 -06:00
Matt Godbolt 252f8fe101 Asyncify dmd 2020-01-21 08:06:55 -06:00
Matt Godbolt 766480dc25 Asyncify clean 2020-01-21 07:53:59 -06:00
Matt Godbolt 9941ac6e76 async 2020-01-14 22:53:33 -06:00
Matt Godbolt 03a3fb3bda Argument parser asyncs 2020-01-14 22:37:58 -06:00
RabsRincon 885aee1c63 Remove last remaining vars and fix formatting 2020-01-08 13:49:23 +01:00
Matt Godbolt 7a920eb23a More async work; and some refactoring 2020-01-06 23:04:49 -06:00
Matt Godbolt c4d7b618b3 Fix up return of postProcess for golang. Fixes #1765 2020-01-06 22:37:23 -06:00
Rubén Rincón Blanco 1875d36e25 Merge pull request #1761 from DaemonSnake/master
Nim Fix, change in object file name
2020-01-02 15:31:35 +01:00
bastien penavayre 5d8673de33 Nim Fix, change in object file name 2020-01-02 09:29:27 +01:00
Rubén Rincón Blanco 8f2829221c Merge pull request #1753 from DaemonSnake/master
Add support for Nim language
2020-01-01 15:38:48 +01:00
Matt Godbolt 3914aee49a Async-i-fy the compiler (#1708)
Async-ify base-compiler

* Adds async to a number of methods
* Breaks 'compile' into a few smaller methods for readability
* Remove a few (seemingly!) unnecessary `Promise.all([x])`
2019-12-31 10:17:25 -06:00
RabsRincon 28069395b6 Properly extend rustc argument parser results 2019-12-27 17:58:47 +01:00
RabsRincon f8b83af8cb Fix rust argument parser with multi flag help comm 2019-12-27 17:48:45 +01:00
RabsRincon 21bf3b235d Add colored output to Rust compilers if supported
As requested in #1755
2019-12-27 16:50:33 +01:00
bastien penavayre 2edc91cefb Nim add set default command as compile instead of compileToCpp 2019-12-26 23:59:20 +01:00
bastien penavayre 3c309a2a37 Nim, move cachefile from input name into function for testing 2019-12-26 17:59:13 +01:00
bastien penavayre 6027190933 Move Nim code from runCompiler to filterUserOptions and remove custom runCompiler 2019-12-26 11:43:49 +01:00
bastien penavayre 3492287638 Add support for Nim language
- Add language
- Adds Nim compiler
- supports js, c, c++ outputs (objc not tested)
- prevent --run option
- Basic test for nim

Todos:
- monaco profile for Nim
2019-12-26 11:03:20 +01: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
Patrick Quist ba7d53572c Merge pull request #1616 from mattgodbolt/staticlibs
Static library linking support
2019-11-06 14:47:46 +01:00
Sebastian 78b3381c84 * Add Python support (#1612) 2019-10-30 19:51:38 -04:00
Partouf fcbeb14ed4 Merge remote-tracking branch 'matt/master' into staticlibs 2019-10-25 17:36:39 +02:00
emekoi aa65c04f80 added llvm-ir emit support for zig 2019-10-17 09:12:06 -05:00
Patrick Quist 6eb24dda04 Merge pull request #1621 from Loghorn/fix-1409
Fix zig output filename
2019-10-10 17:19:21 +02:00
Austin Morton e2595f356b Allow forward slash in all command line arguments
They are already allowed in nearly all places,
the only exceptions being PPCI and tools.

Additionally update PPCI argument blacklist
to include --html-report option.
2019-10-09 17:02:31 -04:00