Commit Graph
626 Commits
Author SHA1 Message Date
Jeremy Rifkin 2b06c69111 Turn some auto-fixable eslint rules back on (#4766)
This PR turns comma-dangle and indent eslint rules on for lib/. These
are rules inherited from the eslint config for static/, this PR just
makes things more consistent. Also turned
@typescript-eslint/no-var-requires back on while I was here.
2023-02-23 17:16:17 -05:00
Marc Poulhiès 73f7d0787f Initial support for Modula-2 language (#4747)
With the upcoming gcc 13 release and its shiny Modula-2 frontend, we
are introducing Modula-2 support in Compiler Explorer :)

Currently, only the gcc-snapshot build supports modula-2.

fixes #4688

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-02-23 20:43:56 +01:00
Jeremy Rifkin 563b220cb9 Type work for some handlers and stuff related to the compiler-finder (#4752) 2023-02-22 17:45:55 -05:00
Fábio de Souza Villaça Medeiros 7fe0b694c9 Update hook-mode.ts (#4756) 2023-02-19 22:21:35 +00:00
Marc Poulhiès 357cec2f78 fix: compile to binary object not working with ldc/dmd
The compile to binary object has been enabled by mistake for dmd and
ldc, so taking the opportunity to implement it.

ldc is sensitive to output filename extension (.s will force assembly
output, .o binary).

dmd accepts -c to skip the link step.

fixes #4649

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-02-14 19:56:46 +01:00
Valentin Churavy 149762051a [Julia] show options from compiler wrapper not Julia runtime (#4716)
https://github.com/compiler-explorer/compiler-explorer/pull/4674 wasn't
quite finished.
This goes the last mile, and shows the user the options from the
compiler-wrapper.
2023-02-12 13:55:47 -06:00
Valentin Churavy ceee0d15f5 Add JuliaParser (#4674)
If I understand this right this should populate the list of options for the "compiler options" drop-down
2023-02-10 07:09:18 -06:00
Matt Godbolt 3bc2dbcafc TSify the compiler args (#4692) 2023-02-09 19:34:18 -06:00
Jeremy Rifkin b2ecedf86d Scala fix (#4683) 2023-02-01 16:37:30 -05:00
SeekingBlues 86317c7e7f Fix internal error on Java compilation (#4668) 2023-01-31 10:32:57 -05:00
Matt Godbolt 2da5d57622 npm update and prettier 2023-01-29 17:40:54 -06:00
Matt Godbolt 49d9a24552 Fix up hoom_home for interpreting (#4651) 2023-01-29 16:46:18 -06:00
Jeremy Rifkin 6a6efaefe6 Tsify lib/compilers (#4609) 2023-01-29 13:22:30 -05:00
Fábio de Souza Villaça Medeiros b3a4d27b07 Fix module loading in Hook compiler (#4639) 2023-01-28 17:25:08 +01:00
Jeremy Rifkin 560dbf9563 Tsify compilation-env (#4636) 2023-01-25 21:51:07 -05:00
Marc Poulhiès 28928a44cf Initial support for Objective-C/Objective-C++
Currently only list GCC compilers as a first step.
Will add clang in a followup change.

Port gcc.js to Typescript (simple renaming).

Package the objectivec language support for Monaco.

Add very basic example. Something more objc/objc++ specific would be better.

fixes #2942

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-01-21 10:01:11 +01:00
Fábio de Souza Villaça Medeiros d9cd9e0301 Ignore trim filter for Hook (#4604) 2023-01-20 11:29:07 +01:00
Jeremy Rifkin 6207cb2d6e npm run lint to get const fixes 2023-01-17 12:31:49 -05:00
partouf acc19d1d1c cleanup imports 2023-01-14 15:54:44 +01:00
Alex 24a2425730 Add Julia (#4595) 2023-01-14 15:44:14 +01:00
Jeremy Rifkin 33167a3024 Tsify main (#4520) 2023-01-13 19:52:00 -05:00
Fábio de Souza Villaça Medeiros b94325e3d2 Add Line Mapping Support to Hook (#4580) 2023-01-13 17:25:35 +01:00
Patrick Quist 092ce12e8e move emulation related fields to artifact system (#4567) 2023-01-11 21:07:38 +01:00
Patrick Quist 509075d1e4 Cmake build with ninja (#4287) 2023-01-11 21:02:29 +01:00
Marc Poulhiès 69055681d9 Support for compiling to binary object (#3232) 2023-01-11 19:39:25 +01:00
kasperk81 d13574d178 display crossgen2 version in asm output (#4526)
dotnet 6 and 7 will also show the version once there is a new deployment. for now they are showing 7.0.0-dev and <unknown version> respectively
2023-01-03 18:18:07 -06:00
Matt Godbolt c2780113b4 Slightly more controversial bumpings (#4503)
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version

applies new tslint stuff
2023-01-03 18:18:06 -06:00
Steve 61aad90f94 Various enhancements for dotnet (#4362) 2023-01-03 18:18:06 -06:00
Rubén Rincón Blanco 26b027a8b2 Mark Assembly compilers cfg-able (#4461) 2023-01-03 18:18:06 -06:00
Jonathan Reichelt Gjertsen e361a9b2f6 Working CL430 compiler 2022-12-22 01:01:26 +01:00
Jonathan Reichelt Gjertsen 920565bc99 Update optionsForFilter 2022-12-21 23:39:25 +01:00
Jonathan Reichelt Gjertsen 6e715b2ab1 Add to start working on issue #4480 2022-12-21 22:17:43 +01:00
Tobias Hieta 96aa4bea0f Add support for clang-cl and llvm-undname (#4371)
* Added llvm demangler code

* Added clang-cl compiler class
2022-12-18 21:10:04 +01:00
Jeremy Rifkin 7a56ee84f7 Assert and unwrap utilities (#4437)
* Add assert and unwrap utilities

* Playing around with diagnostics

* lib/assert diagnostic implementation

* Remove temporary testing stuff

* Reset package-lock.json to before I messed with it

* Further refinements and integration

* Added licence and removed an obsolete eslint directive
2022-12-18 10:30:17 -05:00
Matt Godbolt cad5227756 Don't try and hack the compilation results (#4429)
* Don't try and hack the compilation results

Carbon tried to synthesize "having run" by overriding and hacking a result routine...but did so _after_ it had been cached. So cached results were broken, but live results not.

This "fixes" by adding a post-compilation, but pre-cache hook and uses that instead. Naming is terrible.

I also took the time to fix the `CompilationResult`'s `buildResult`

Closes #4426
2022-12-12 21:38:22 -06:00
Jeremy Rifkin 40e17145a8 Make the linter happy (#4393) 2022-12-03 17:03:59 +01:00
Jeremy Rifkin 7e9b5cb241 Converted argument-parsers to ts (#4389) 2022-12-02 14:36:23 -05:00
Matt Godbolt 85da9e784b Ts-ify carbon (#4384) 2022-12-02 10:58:23 -06:00
Patrick Quist ae0fee1095 first bits of compiler interface (#4378) 2022-12-02 13:42:47 +01:00
Matt Godbolt 2b5de93c6a Port fortran.js to typescript (#4381)
* Port fortran.js to typescript
* @jeremy-rifkin suggestions
2022-12-01 21:32:08 -06:00
partouf 2455e412fa obsolete vars 2022-11-29 00:54:37 +01:00
partouf b6d459c9af format and lint 2022-11-28 23:29:38 +01:00
Patrick Quist 4f1bbcf526 .net - compileToBinary fix (#4353) 2022-11-28 23:13:01 +01:00
kasperk81 df607d5f6b dynamically set targetFramework (#4354) 2022-11-28 23:09:48 +01:00
Marc Poulhiès 2fa2bbb16a refactor: renames the CompilerFilters type (#4346)
The type which probably started as a real enum of possible post filtering
options now also includes options used for compilers' invocations.

The type was already split, but the naming was not reflecting this in the other
part of the code.

This changes tries to apply a simple renaming to the type only (corresponding
variables are left as 'filters').

While doing so, some typing error were discovered around the GccDump feature.
A fix for this will follow in a different PR.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-11-28 21:37:15 +01:00
Steve 75b9d30485 Support trunk and execution for .NET (#4351)
* Support trunk and execution for .NET
* Adjust compilers order
* Support stdin
* Update samples
2022-11-27 10:14:35 -06:00
Jeremy RifkinandMatt Godbolt e13fe4a2f9 Mg/props ts (#4340)
* WIP

* Type changes to the property getter

* Finish getting types working for properties.ts

* Reduce type casts in exec.ts

* Format files

* Remove old comment

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-11-26 13:56:04 -05:00
Matt Godbolt e38d248aeb Fixes for .NET 7 (#4347)
- check return code of restore
- set env vars to prevent file size blowout
2022-11-26 10:42:24 -06:00
Steve 959822a74c Fix F# build failure (#4344)
* Fix FSharp compilation
2022-11-26 09:46:01 -06:00
Steve 0961116011 Fix crossgen2 arguments (#4342)
* Fix crossgen2 arguments
2022-11-25 17:48:26 -06:00