Commit Graph
20 Commits
Author SHA1 Message Date
Patrick Quist a2eed58cd0 Transfer copyright to compiler explorer authors (#2232) 2020-09-26 18:26:02 -04:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -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
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
Austin Morton cadbdf59ff Switch to p-queue package, implement compilationEnvTimeoutMs, and improve temp cleanup logging (#1877)
These changes are an attempt to help diagnose a queue halting issue that decreases parallelism and prevents temp dir cleanup.

see #1875
2020-03-07 01:50:49 -05:00
Austin Morton 1b7fe24990 Perform some general maintenance on the test suite (#1840) 2020-02-18 00:03:15 -05:00
Nicole Mazzuca 615a6e6b2b lowercase filenames
also, change the name of the compiler classes in the files;
this doesn't change the API at all
2018-07-29 15:37:06 -07:00
Nicole Mazzuca 97e02f1013 Fix comments, plus add some tests 2018-07-29 11:23:34 -07:00
Nicole Mazzuca 9ddf22f090 Support Visual C++ and Windows well
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:

  - switch from /FAsc to /FA
  - order functions in file order
  - support demangling win32-style identifiers with undname
  - clang++ and vc++ on win32 host are both supported
2018-07-28 15:18:43 -07:00
Rubén 1a33902997 Merge compilerProps functions to a general case one (#956)
* Merge both compilerProps functions to general case

* Move compilerProps to lib/properties.js

It's now its own class, which takes a languages object + the ceProps
function to calMove compilerProps to lib/properties.js

* Add compilerProps behvaiour tests

* Add unknown language test
2018-06-19 10:09:44 +02:00
RabsRincon 6ef87b5ef9 Fix copyright dates and normalize text 2018-02-27 14:58:21 +01:00
Partouf 9a76e777a7 remove return initialise, no need for unittestmode 2018-01-28 00:34:05 +01:00
RabsRincon 9cb7251750 ES6fy CompilationEnv. Fixed some tests cornercases 2018-01-18 20:22:22 +01:00
RabsRincon a54faefb4c ES6fy compilers inheritance 2018-01-18 19:43:10 +01:00
RabsRincon fc75208dac New year, new date 2018-01-01 16:44:04 +01:00
Matt Godbolt b4bfd0003f ES6-if-cation 2017-12-28 16:30:59 -06:00
Matt Godbolt c642ed3849 Merge branch 'master' into unification 2017-12-28 12:56:44 -06:00
partouf c3b69e7071 use testmode to access internal functions instead of _12 2017-12-28 14:51:15 +01:00
partouf 3fe2f52fed fix unittest to new situation 2017-12-20 17:08:55 +01:00
partouf 1661be6af6 bugfix undname wine & wsl 2017-12-14 17:09:31 +01:00