1928 Commits
Author SHA1 Message Date
Marc Poulhiès ed802bf37e fixup! Support for compiling to binary object 2023-01-09 20:02:19 +01:00
Marc Poulhiès bffc28b73c Support for compiling to binary object
Support for compiling until assembler, before invoking the linker (eg. gcc -c).
Basic support for displaying relocation informations.

Currently only used in c/c++/d and may/will propagate to other compilers later.

fixes #3222

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-01-08 20:45:12 +01:00
Fábio de Souza Villaça Medeiros 69550eb811 add Hook's icon and update lexicon (#4552) 2023-01-06 14:20:00 -06:00
Partouf fd09bacf6b formatting 2023-01-06 17:11:35 +01:00
Marc Poulhiès 8503ed60fa fix: empty exclude value in option file badly handled (#4546) 2023-01-06 16:57:43 +01:00
Patrick Quist f7d221d937 Revert "Tsify rison.js (#4510)" (#4549)
This reverts commit e1cc30941d.
2023-01-06 16:13:40 +01:00
partouf daba0c2fe2 change check order and add error logging 2023-01-05 01:08:06 +01:00
Patrick Quist ee82d72364 Update ceconan.ts (#4534) 2023-01-05 00:59:17 +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 c1a0ef17b4 Handle zero-sized files (#4530)
* Handle zero-sized files

It appears that having a zero-sized file won't call our `next()` handler which means we wedge forever and eventually time out.

This is a workaround. Upstream issue filed as https://github.com/mafintosh/tar-stream/issues/145
2023-01-03 18:18:07 -06:00
Matt Godbolt 64d68dafef Handle non-200s from conan (#4529)
* Handle non-200s from conan
2023-01-03 18:18:07 -06:00
Patrick Quist 96e7f1d7ec dont query conan if library is autodetect (#4528) 2023-01-03 18:18:07 -06:00
Jeremy Rifkin e1cc30941d Tsify rison.js (#4510)
* Tsify rison.js

* Turn eslint back on

* Improve typing, cleanup code

* Matt comments

* Prettier-ignore a type declaration

* A couple small type tweaks
2023-01-03 18:18:07 -06:00
Jeremy Rifkin 6a35640b5b Quick fix for #4519 2023-01-03 18:18:07 -06:00
Jeremy Rifkin c2bc8c728e Try to address an unhandled exception that's crashing instances (#4519)
* Try to address an unhandled exception that's crashing instances

* Quick amendment
2023-01-03 18:18:07 -06:00
Patrick Quist 8fcc108873 Fixcrashissue (#4518)
* await for conan downloads
* await later

This fixes #4512 - essentially any exceptions thrown before the `await` of the build environment would leave a "task" that was trying to write to the temp dir. the temp dir would then be deleted, and the untar would fail, and as nobody was await-ing its return (as the awaits used to be _after_ the throwing code) then we'd get an uncaught exception.
2023-01-03 18:18:07 -06:00
Matt Godbolt dc71e7ac7f More catching 2023-01-03 18:18:07 -06:00
Matt Godbolt 184a6073fd Catch exceptions in tar handling (#4515)
- adds error handlers for all streams
- catches exceptions raised in the non-trivial `entry` handler
- rejects in all cases

Partially addresses #4512
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
Jeremy Rifkin e7f726c332 Tsify lib/storage (#4499)
* Tsify lib/storage

* Add @types/request

* Fix get/post types

* Better type solution
2023-01-03 18:18:06 -06:00
Jeremy Rifkin de670d4a44 Tsify lib/shorteners (#4504)
* Convert lib/shorteners to ts

* Improved types
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
Patrick Quist 1d7e3c9594 minimal ts conv of llvm-ir (#4477) 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
Matt Godbolt d94eb203c1 Add lint rule for unused imports, and fix (#4476) 2022-12-20 15:51:39 -06:00
Rubén Rincón Blanco fe5f5e11cd Add .hword and .octa to datadef regex (#4460)
Closes #4434
2022-12-20 18:31:26 +01:00
Matt Godbolt 57a647b8a3 Add the result inside the CompilationResult (#4475) 2022-12-20 08:15:39 -06:00
Matt Godbolt 9f2954359f Fix #4469 (#4473)
* Fix #4469

Errors now look like:

```
Internal Compiler Explorer error: Error: Internal error running asm parser:
./dump-and-parse.sh: line 4: /usr/local/bin/asm-parser: No such file or directory

    at CEAsmParser.parseAsmExecResult (/home/matthew/dev/ce/compiler-explorer/lib/external-parsers/base.ts:77:19)
    at CEAsmParser.objdumpAndParseAssembly (/home/matthew/dev/ce/compiler-explorer/lib/external-parsers/base.ts:101:21)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async DefaultCompiler.objdump (/home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:414:31)
    at async Promise.all (index 0)
    at async DefaultCompiler.checkOutputFileAndDoPostProcess (/home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:1356:16)
    at async /home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:2236:41
    at async run (/home/matthew/dev/ce/compiler-explorer/node_modules/p-queue/dist/index.js:163:29)
Compiler returned: -1
```

which at least gives context on why the parsing failed. And per discussion with @partouf we'll blow up at construction time if the file isn't there, which means the above is more to cover "what if the tool dies".
2022-12-19 22:41:04 -06:00
Matt Godbolt 6348917e15 Separate shareable tool type from server ITool (#4472)
* Separate shareable tool type from server ITool

I realised we were using the "Tool" on both client and server, but the client only has the JSON-able data of Tool, not the interface/object Tool (now renamed to `ITool`).

* Fix tests
2022-12-19 22:40:27 -06: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 00158d1ba1 TS-ify logger (#4431)
* TS-ify logger

Also redoes some pretty nasty morgan workarounds in favour of an actual real stream.

* Fix tests. and actually write some

* Formatting

* Add clarifying comment
2022-12-18 10:29:56 -05:00
Matt Godbolt 3556033026 Moving compilation queue to ts (#4440)
* Moving compilation queue to ts
2022-12-16 07:37:12 -06:00
Matt Godbolt 1536523c53 Port csp.js to ts, remove _ dep (#4439) 2022-12-14 20:44:26 -06: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
Patrick Quist 9de0b70af3 min effort ts conv dropintool (#4412) 2022-12-12 20:11:05 -06:00
partouf 2d28398c9b demangling fix 2022-12-10 19:11:45 +01:00
Patrick Quist 67f71f2b51 Support patched clang for faster opt-view (#4416) 2022-12-10 18:17:51 +01:00
Patrick Quist f598cf8aaf fix interpreting with multiple files (#4407) 2022-12-07 20:03:48 +01:00
Jeremy Rifkin e1fb48714c Updated CompilerProps.get typing (#4397)
* Updated CompilerProps.get typing

* Get rid of two any casts in options-handler.ts

* Fixed mistaken types
2022-12-06 19:56:58 -05:00
Jeremy Rifkin 81ed9f285d First pass ts conversion for lib/mapfiles (#4386) 2022-12-05 20:29:24 -05:00
Jeremy Rifkin e7b10519f7 Tsify options-handler (#4396)
* First pass conversion of options-handler to ts

* Small tweaks

* Fix tests
2022-12-03 19:37:57 -05:00
Jeremy Rifkin 973c9427f0 Ts-ify objdumpers (#4385)
* Ts conversion for objdumpers

* Updated copyright years
2022-12-03 11:41:43 -05:00
Jeremy Rifkin 527729f897 Tsify compiler finder (#4390)
* Convert compiler-finder to ts

* Updated CompilerProps getter typings to be way more awesome

* A couple small tweaks

* Address review comments
2022-12-03 11:28:10 -05: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
Jeremy Rifkin 836a2d7005 Tsify generated asm docs (#4388)
* Converted amd64 docs to ts

* 6502

* 6502 part 2

* arm

* avr

* evm

* java

* llvm

* python

* Fix bug with only getting the first paragraph

* Updated help messages
2022-12-02 14:36:10 -05:00