Commit Graph
27 Commits
Author SHA1 Message Date
RabsRincon 6fd069b35c Fix utils-test.js eslint complaints 2021-08-13 05:31:10 +02:00
RabsRincon 383c540ad8 Add missing tests for utils.fileExists 2021-08-11 08:19:54 +02:00
Rubén Rincón Blanco 27012bb0ec Initial sketch for how we could parse Rust output (#2761)
* Initial sketch for how we could parse Rust output

It has many issues, which I need to ask about, but ey, it works!

* Fix spacing

* Add tests for the new Rust output parsing
2021-07-06 05:21:31 +02:00
Sam Elliott 068f62cdd8 [riscv] Enable More RISC-V Targets (#2326)
RISC-V became a default backend in Clang 9.0. This commit enables the
use of the RISC-V backend for Clang in versions:
- 9.0.0
- 10.0.0
- 10.0.1
- 11.0.0

I also did a few other tidy-ups:
- I ensured that these could use more headers for rv64, by adding the
  `--gcc-toolchain` and `--sysroot` args to point to the rv64 8.2.0
  cross-compiled gcc toolchain.
- I updated the `-mabi` for rv64gc so it matches what that toolchain is
  likely to have chosen as a default (and what a user is likely to
  expect with the gc extension). I should check this, but I'm not sure
  how I can.
- I updated the `-mabi` for rv32gc so it matches what a user is likely
  to choose by default (ilp32d).
- I changed the config keys to introduce a hyphen, to match the arm
  compiler keys (and added the right alias).
- I'm not sure if older versions of CE-built clang also have RISC-V,
  given that the clang-builder repo has `RISCV` in the experimental
  targets to build. (PR incoming to remove that, as it's no longer
  needed).

I haven't been able to test this, partially because it depends on the
exact compiler-explorer setup on amazon, but I gleaned these details
from code in the compiler-explorer/infra repository.

Signed-off-by: Sam Elliott <sam@lenary.co.uk>
2020-11-13 07:30:52 -06:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton 9052568afd Fix incorrect usage of Promise/async in test suite
In most cases the result was assertions simply not being run.

This was verified by changing the assertion in a way that should
have resulted in failure, and observing no tests failing.

Another case resulted in tests being registered to the wrong suite.

The common theme here is that if you are dealing with async in mocha
you must await everything or return any promise objects you create.

The simplest thing to do is convert the function to use async/await,
except in a `describe` callback where async can *not* be used.  If the
async code is not going to generate any test cases, you can make use of
`before(async () => {});`.  If you are going to dynamically generate any
test cases, you must do so synchronously within the `describe` callback.
2020-09-23 01:20:40 -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
Partouf dc2361291e bugfix fortran errors 2020-07-14 20:41:21 +02:00
Rubén Rincón Blanco 1106db4939 Make url hash a base32 encode (#2062)
Avoids most of the problems present with the current base64 impl
2020-07-06 08:33:10 -04:00
Matt Godbolt 0647dba020 Replace strings using a slightly faster method.
Improves performance of the demangler considerably, taking one example
case from 30s compilation down to 10s (on my laptop).

With much help from @apmorton

Should help with #1336, though we still need more work to push stuff
onto another thread to really help with that (per Austin's comments).
2020-02-04 21:09:52 -06:00
Partouf 7924f6d436 real path fix for tools 2019-07-30 00:25:19 +02:00
Matt Godbolt 2e7fc5fe80 Super minor tweaks to @bugwelle's awesome PR for LLVM IR mode! 2019-03-21 21:28:43 -05:00
Matt Godbolt b87322568e Merge branch 'master' into llvm 2019-03-21 20:31:42 -05:00
Kārlis Seņko 40f6e0e1f1 Trim trailing whitespaces when removing comments. 2019-01-08 00:41:07 +02:00
Andre Meyering 061dcd35c7 [Utils] Add trimLine() function
- trimLine() trims left, right and int-between spaces
2018-11-28 14:29:10 +01:00
RabsRincon bdc447fe30 Fix local storage & add compiler name to unfurling 2018-08-20 11:10:23 +02:00
RabsRincon 1e053fdffa Add getHash tests 2018-07-04 18:52:13 +02:00
RabsRincon dd2ab6d41f Move to own fork of cookieconsent
Due to concerns over status of upstream

Cookie consent value is now tied to hash of cookie privacy text,
	so we get automatic revoking of consent on privacy update
2018-07-04 17:54:23 +02:00
RabsRincon e567783bad Add logger tests to ensure usability 2018-07-02 08:57:21 +02:00
RabsRincon 12026f6f33 Move anonymizeIp function to utils.js & add tests 2018-06-28 02:23:38 +02:00
Partouf a58689b664 remove temp path from filenames in output 2018-03-15 18:03:21 +01:00
Partouf f0f74524a9 better error output for pascal 2018-03-15 17:46:24 +01:00
RabsRincon 6ef87b5ef9 Fix copyright dates and normalize text 2018-02-27 14:58:21 +01:00
RabsRincon fc75208dac New year, new date 2018-01-01 16:44:04 +01:00
Matt Godbolt 3baf2a2a5f Treat <stdin> like compiler source. Should fix #680 2017-12-19 08:00:34 -06:00
Matt Godbolt 644d337393 Move utils tests into the right spot 2017-12-11 07:30:13 -06:00