Commit Graph

42368 Commits

Author SHA1 Message Date
Matthew Flatt
ab1b164982 cs ffi: fix handling of struct results 2020-08-13 13:54:10 -06:00
Matthew Flatt
1e91db8053 raco setup: add debug logging to report available concurrency 2020-08-13 13:54:10 -06:00
Jesse Alama
b722d81059
Remove dead store identified by a static analyzer (#3341)
Evaluate to_quoted, possibly for side effect (emitting a
quote), but ignore its return value.

Co-authored-by: Jesse Alama <jesse@lisp.sh>
2020-08-11 19:11:54 +02:00
Matthew Flatt
983601f611 makefile: update for distro-build cooperation 2020-08-10 06:37:09 -06:00
Matthew Flatt
543dab5964 cs: fix iteration on copy of a mutable hash table
Incorrect initialization of the copy's iteration state for a hash
table meant that table sizes larger than 32 looked like tables of only
32 elements when iterating (including when printing).

Closes #3344
2020-08-09 15:51:39 -06:00
Matthew Flatt
4f0290186b cs: fix optimizer bug
An optimization pass used mostly for inlining did not reqcognize
`quote`, and it could replace a quoted name with a constant-propagated
value.

Closes #3339
2020-08-08 13:03:40 -06:00
evdubs
980a9fbd4d Ensure sorting is applied for in-directory
In initial-state, the call to dir-list will sort the results of directory-list. However, in initial-state, there is a different path that will call directory-list without sorting. This change makes these paths consistent.
2020-08-07 07:59:00 -06:00
Matthew Flatt
776b69e399 avoid race on places and initialization for eval
Force visits on internal Chez Scheme modules before starting a place,
so that there won't be a race among places to visit the modules.
2020-08-07 07:19:58 -06:00
Paulo Matos
5faf14c45b
Fetch PB to start LGTM build 2020-08-07 12:17:17 +02:00
Matthew Flatt
52ca857796 makefile: repair BC cross build 2020-08-06 16:52:56 -06:00
Fred Fu
e4dc27a2b8 fix typos in comments 2020-08-06 16:29:58 -06:00
Matthew Flatt
581f02d6f8 expander: fix make for generating BC source
Also, update "README.txt" to explain both CS and BC setup.
2020-08-06 14:09:53 -06:00
Matthew Flatt
06ed5bf8f5 cs gracket: unbreak zero-argument case on Unix 2020-08-06 07:45:19 -06:00
Matthew Flatt
6317669f51 cs gracket: fix handling of X11 flags and -singleInstance
X11 flags and -singlreInstance were being filtered from the command
line but not propagated to the `racket/gui`.
2020-08-05 18:01:21 -06:00
Matthew Flatt
adabeeb249 reference: restore accidentally removed docs 2020-08-05 10:43:46 -06:00
Matthew Flatt
65b69a91e5 add needed store fence in list-bits management 2020-08-05 06:25:12 -06:00
Paulo Matos
342e95cf32
Fix variable replacement (#3337)
By using `{$threadLibs}` it meant we ended up with a command line with `{hreadLibs}`, which breaks the arm32le build.
2020-08-05 14:10:17 +02:00
Matthew Flatt
29a6ca6737 Chez Scheme: increase FP registers for x86_64 2020-08-05 05:55:28 -06:00
Matthew Flatt
2b73b20704 Chez Scheme: on Arm64, implement popcount with CNT and ADDV
Initial measurements suggest that performance is unchanged, but it
at least generates less code.
2020-08-05 05:55:28 -06:00
Matthew Flatt
204d9d6f01 Chez Scheme: increase available registers on Arm64 2020-08-05 05:55:28 -06:00
Matthew Flatt
744e69c0c1 add flsingle
The `flsingle` function takes a flonum and discards precision that
wouldn't fit in a single-flonum. If single-precision arithmetic is
somehow useful, then combine flonum operations with `flsingle` to
discard precision on the result; even on Racket BC, that's likely to
perform better than using generic arithmetic on single flonums.
2020-08-05 05:55:28 -06:00
sorawee
dcf034280e
Preserve multivalued-ness of stream in stream operations 2020-08-04 07:02:40 -06:00
Sorawee Porncharoenwase
e2b8fdb553 cs: change multiple values mismatch error to match bc
Related to #3325
2020-08-04 06:53:11 -06:00
Matthew Flatt
85497fe230 bc: another test repair for raco exe 2020-08-03 17:00:26 -06:00
Alexis King
6683e17fdc makefile: Add a PKG_UPDATE_OPTIONS config variable
This is analogous to PLT_SETUP_OPTIONS, but for the `raco pkg update`
step. This is useful for adding an option like `--pull try` to ignore
failures to update local clones.
2020-08-03 15:29:33 -05:00
Paulo Matos
2ee8807298
Clean up uuid dependencies from workflows (#3331) 2020-08-03 19:21:48 +02:00
Paulo Matos
e62b3b8c1c
Fix tool name in SARIF files depending on racket build mode (#3328)
This should replace the toolname in sarif files to workaround the lack of tags when uploading them.

See here for a request to add that:
https://github.com/github/codeql-action/issues/129
2020-08-03 17:46:04 +02:00
Jay McCarthy
09ff1344e8 git-checkout display repo on error 2020-08-03 10:30:11 -04:00
Paulo Matos
77fd6936b1
Fix target names post-CS becoming the default (#3327)
Fixes target names to fix ubsan workflows.
2020-08-03 16:16:36 +02:00
Matthew Flatt
181d08ad9a reference: fix sorting in in-directory example 2020-08-03 06:27:34 -06:00
Matthew Flatt
0f910e391c raco exe test: adapt to "bc" suffix 2020-08-03 05:54:28 -06:00
Matthew Flatt
fcd7295457 remove uuid lib from linking specs 2020-08-03 05:37:27 -06:00
Matthew Flatt
2d0961adcf avoid dependency on libuuid by using /dev/urandom on non-Windows 2020-08-02 18:33:13 -06:00
Matthew Flatt
2cca030eff Chez Scheme: fix tests to work outside of source directory 2020-08-02 18:30:43 -06:00
Matthew Flatt
0866ddea01 fix a test for racketbc 2020-08-02 16:18:05 -06:00
Matthew Flatt
b32b3178bc raco: recognize racobc when trying to distinguish from setup-plt 2020-08-02 14:58:51 -06:00
Matthew Flatt
9b5dd35adc makefile: fix cross builds 2020-08-02 14:28:45 -06:00
Sam Tobin-Hochstadt
0cd1899d9d Update CI snapshots for cs-as-default. 2020-08-02 16:17:23 -04:00
Matthew Flatt
2885df0347 update build guide and READMEs for CS as default 2020-08-02 07:57:12 -06:00
Matthew Flatt
e6752e9afc configure: switch default from BC to CS
This change brings the top-level makefile and `configure` back in
sync, but it affect source distributions by changing the `configure`
default there.
2020-08-02 07:57:12 -06:00
Matthew Flatt
093fcd1bc7 makefile: make Racket CS the default
The top-level makefile now builds Racket CS as `racket` by default.

Use `racket bc` to build Racket BC as `racket`. Use `make both` to
build both CS and BC (the latter with the `bc` suffix) overlayed in a
single build. By using `make both` insted of `make cs` plus `make bc`,
you can avoid redundant package downloads and documentation rendering.

To build Racket BC as `racket`, use `racket bc RACKETBC_SUFFIX=`, but
you must consistently use `RACKETBC_SUFFIX=` with `make` every time.
2020-08-01 17:33:53 -06:00
Matthew Flatt
1c181ffbd8 cs: change undefined-variable error to match bc
Add a missing "in".

Related to #3325
2020-08-01 12:47:08 -06:00
Matthew Flatt
351c45c78b rktio: fix use of POLL... where EPOLL... is intended 2020-08-01 09:10:26 -06:00
Matthew Flatt
ad3baffc8d fix gracketcgc install 2020-08-01 08:12:22 -06:00
Matthew Flatt
719cd66835 Chez Scheme makefiles: fix .bootquick when source has boot files 2020-08-01 07:52:04 -06:00
Matthew Flatt
6c59a722a1 makefiles: fix install of GRacket BC 2020-08-01 07:05:30 -06:00
Matthew Flatt
b0bd5061d5 Chez Scheme makefile: create correct directory on .bootquick 2020-08-01 06:17:22 -06:00
Matthew Flatt
2ae4ee4163 makefiles: build Chez Scheme in the "build" area
Instead of leaving Chez Scheme build artifacts in in the ChezScheme
source directory, keep them in a "build" directory like everything
else.
2020-07-31 16:33:07 -06:00
Matthew Flatt
c1cd9c499c adjust Chez Scheme configure script to work in any directory
Adjust `configure` and makefiles so that `configure` can be run in an
directory, not just the source directory. Initial boot files are found
at either the current directory or the source directory.

Also, add support for `-B` and `--Boot` flags to accept a path that is
resolved relative to the current directory, instead of relative to the
installation.
2020-07-31 16:32:19 -06:00
Matthew Flatt
fc5f846693 cs: fix Mac OS framework versioning 2020-07-31 12:47:07 -06:00