Commit Graph
219 Commits
Author SHA1 Message Date
Matt Godbolt d350ec1c1a Only stat compilers if absolute.
Fixes #487
2017-07-30 09:46:29 -05:00
Matt Godbolt 476fde3c4c Identify lines referring to included files.
Now the API returns `source: {line: num, file: x}` where x
is null for the user-supplied file and a path otherwise.

Hopefully fixes #353, and #418 and #417 - previosuly we misidentified
external lines as being for this file, so the STL includes (for example)
would be misinterpreted as being local. As the STL includes are huge,
we'd try and colourise line 600, or similar.

Tests updated accordingly.
2017-07-30 08:49:24 -05:00
Matt Godbolt df917cc7ca Handle missing binaries 2017-07-26 14:57:28 -05:00
Matt Godbolt 6ae7d04c4d Rerun a compiler to get version only on mtime change
Hopefully helps #485. Relies on the mtime of the executable
changing to notice it's different, so will be thwarted if only
DLLs/sos change. But that's not really all that likely given the
way CE works currently.
2017-07-25 23:06:06 -05:00
Matt Godbolt 9c0151997d Improvements to embedded views 2017-07-21 08:34:50 -05:00
Matt Godbolt 3c80c6eff0 Fix some minor issues with compiler type determination.
Remove 'compiler.type' in favour of the comiler itself being
given an option to say what type it is. Default for that does
the same guess that the old code did (plus some bug fixes).

Fixed up (I hope!) some of the parsing of the output. I should write
some tests really.

CC @jaredw for further comment
2017-07-12 15:12:49 -05:00
jaredwy 7de967f8ef Merging request options into 1 options object, this makes it clearer to me 2017-07-05 20:09:25 +10:00
jaredwy 13cd0fd797 Made some changes to the way we parse arguments as a stab at a start of a meta data gatherer 2017-07-03 17:45:09 +10:00
Matt Godbolt db8bf4e520 Early support for swift. test with make EXTRA_ARGS="--language Swift"
Huge thanks to @adamnemecek for his help: this is mostly a
merge of his branch.
2017-06-19 19:40:46 -05:00
Matt Godbolt f99b97f95a Merge pull request #456 from mattgodbolt/backend_options
Ensure that backendOptions is defined
2017-06-08 16:27:51 -05:00
Simon Brand 7a57b3aa84 Ensure that backendOptions is defined 2017-06-08 20:15:59 +01:00
Simon Brand 8dbd5dc139 Add Haskell support 2017-06-08 19:52:50 +01:00
Matt Godbolt cb2d52b00c Further appeasement of lint 2017-06-05 22:00:06 -05:00
Matt Godbolt 2a713568b3 Add 'use strict' to make node happy. 2017-06-05 21:56:26 -05:00
Joshua Sheard 2d99dc1571 Make ISPC default to SSE2 if no target is specified 2017-06-05 20:22:38 +01:00
Simon Brand fbe572bdc8 Merge branch 'master' of https://github.com/mattgodbolt/compiler-explorer 2017-06-05 14:43:58 +01:00
Simon Brand 6d37f47662 Make AST view play nicely with other compilers 2017-06-05 14:43:32 +01:00
Matt Godbolt a92e6884ef Actually fix the issue properly (using let) 2017-06-05 08:26:01 -05:00
Matt Godbolt ddfeaead64 Fix up var redeclaration. Stupid JS. We'll move to using let for server-side code soon 2017-06-05 07:22:38 -05:00
Simon Brand 62c5252b56 Don't filter out AST declarations after an implicit declaration 2017-06-05 12:32:23 +01:00
Matt Godbolt 93a0ff1d0d Merge pull request #442 from TartanLlama/master
Support displaying the Clang AST
2017-06-04 12:31:36 -05:00
Simon Brand 49ad2f98db Display message when AST dumping is not supported on the selected compiler 2017-06-04 16:52:13 +01:00
Joshua Sheard 4fc0ec68df Add support for Intel ISPC compiler 2017-06-03 22:26:50 +01:00
Simon Brand 4fbf3dd37d Missing semicolon 2017-06-02 08:58:49 +01:00
Simon Brand a7591a35e5 Format cache key code 2017-06-02 08:45:39 +01:00
Simon Brand e433c807bc Clean up compiler exec options 2017-06-02 08:44:57 +01:00
Simon Brand f78e0624e1 Only run syntax checking when producing Clang AST 2017-05-31 15:27:39 +01:00
Simon Brand fae0b0dba6 Enable AST generation only if the user has an AST view open
This adds the notion of backend options which can be sent from the UI to the backend in addition to the actual compiler options.
2017-05-31 14:26:39 +01:00
Simon Brand 703a5e769f Remove console log 2017-05-31 13:50:46 +01:00
Simon Brand d8a2cc5436 Add missing semicolons 2017-05-31 13:47:20 +01:00
Simon Brand 34465629c1 Support displaying the Clang AST 2017-05-31 10:08:58 +01:00
Matt Godbolt a9c3898a4a Revert "Massive hack to try and get docker-in-docker working"
This reverts commit cecbed040e.
2017-05-15 21:42:59 -05:00
Matt Godbolt cecbed040e Massive hack to try and get docker-in-docker working 2017-05-15 21:21:40 -05:00
Matt Godbolt 2f7f0d5d94 Some CL parser and display fixes.
Closes #374
Closes #380
2017-05-14 15:28:58 -05:00
Matt Godbolt d43c4bd880 More execution fixes 2017-05-08 22:40:44 -05:00
Matt Godbolt 20c1332905 Add optio for execution
Disabled for prod (still).

@lefticus / @rabsrincon to enable locally put

```
supportsExecute=true
```

in your local `compiler-explorer.local.properties` or similar.
2017-05-08 19:03:10 -05:00
Jared Wyles dd27a457fc This brings mostly UX changes.
1. Updates the button to be disabled instead of hidden
2. Disables the button on click. Re-enables when you close the opt view.
3. Will now not break when you have > 1 compiler
2017-04-21 19:18:49 +10:00
Jared Wyles ea490d1e78 Making jshint happy 2017-04-20 09:58:47 +10:00
Jared Wyles cf882a5d0c First pass at adding a opt view mode for compiler explorer 2017-04-20 09:52:45 +10:00
Matt Godbolt dfd691b826 Configurable objdump. Use GCC 6.3's binutils on the live site 2017-04-16 08:15:30 -05:00
Matt Godbolt d0391b2bf5 Fix missing semicolon 2017-04-08 11:14:33 -05:00
Matt Godbolt 983c6bd868 New version of docenizer (requires BeautifulSoup); fixes #362 and #365 2017-04-08 06:45:02 -05:00
Matt Godbolt 516310761f Fix caching of asm opcodes 2017-04-04 18:08:49 -05:00
Matt Godbolt 4d6e95c6f3 Don't send 404s for unknown opcodes (makes things messier in js console and caching). Use client-side caching to prevent unnecessary fetches. 2017-04-04 16:44:24 -05:00
Matt Godbolt 0d38dfa2fd Set caching headers on asm API requests 2017-04-04 08:03:54 -05:00
Matt Godbolt ca75d5a7ea Fix exception when handling unknown opcodes 2017-04-04 07:33:33 -05:00
Matt Godbolt 687cf2839b Move asm-docs into server directory 2017-04-04 07:31:42 -05:00
Matt Godbolt 2a240712ad Fix up wine compilations 2017-03-23 21:10:37 -05:00
Matt Godbolt 4f9c79c075 Disable execution 2017-03-22 21:28:03 -05:00
Matt Godbolt 33b801ee76 Merge branch 'master' into execution 2017-03-22 21:07:35 -05:00