Commit Graph

1922 Commits (revert-2214-feature-commandline-documentation)

Author SHA1 Message Date
Doug Coleman 0cfc48479e macos32: Lock to 10.11 for build machine.
32bit macos has been deprectated and 10.13 does not seem have i386 libraries anymore.
2019-05-22 11:02:20 -05:00
Doug Coleman 9d06dcb67e Config.linux: Better check for g++.
A consistent string across platforms is 'Free Software Foundation'
2019-04-07 18:54:59 -05:00
Doug Coleman 6f58118afb Config.linux: Better check for gcc.
To print in make:
$(info IS_GCC is $(IS_GCC))
2019-03-25 00:31:18 -05:00
Doug Coleman 5609370be6 make: Allow overriding macosx sdk
MACOSX_SDK=MacOSX10.11.sdk ./build.sh update macosx-x86-32
2019-03-22 01:32:28 -05:00
Doug Coleman 60c80e4b78 make: Use the MacOSX 10.13 SDK for x86 support.
Bugfix - CFLAGS += instead of CFLAGS = because it would get overwritten otherwise.

Also allow overwriting of XCODE_PATH for non-standard path.

Download the 10.13 SDK from
https://github.com/phracker/MacOSX-SDKs/releases

```bash
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.13.sdk.tar.xz
xz --uncompress MacOSX10.13.sdk.tar.xz
tar xvf MacOSX10.13.sdk.tar
mv MacOSX10.13.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
```
2019-03-22 00:09:06 -05:00
Doug Coleman d6c3cff581 debian: Don't install gcc g++ on debian.
gmake assumes default CC is cc, CXX is g++ (not c++).
In order to make this sane (c++), we check if the shell variable CXX was set
and if so we honor it, else we set CXX to c++.
2019-03-08 21:19:33 -06:00
Doug Coleman a9871b39aa vm: Fix DEBUG flag, make REPRODUCIBLE work like debug, minor fixes to build.sh
- ``make DEBUG=0`` caused debug mode because the check was ``ifdef DEBUG`` which is true even if DEBUG=0
- no need to ``#pragma message`` that we are doing a reproducible build imo
- clang warns about redefining builtin macros, turn the warning off for reproducible builds
- add ``./build.sh info`` as an alias for ``./build.sh report``
- show if we a reproducible in report/info
2019-02-23 16:23:33 -06:00
Cat Stevens 044f7bbe11 vm/master.hpp: optional reproducible VM compilation
The old behaviour of building with `__DATE__` and
    `__TIME__` is still the default, but now it's
    possible to use `-DREPRODUCIBLE=1` and the
    `REPRODUCIBLE=1` parameter to `make` and `nmake`.

Specifically, this replaces the value of
    `FACTOR_COMPILE_TIME` with the string constant
    `"[reproducible]"`. This is purely a cosmetic
    change.
2019-02-20 15:50:06 -05:00
Doug Coleman 205018869b vm: Add freebsd32 support for completeness.
We need gmake on freebsd.
2019-02-09 19:40:54 +00:00
Doug Coleman 123327115d config.freebsd: Link the UI libraries into the Factor VM.
This should happen for other BSD platforms as well.
2019-02-09 18:49:29 +00:00
Doug Coleman d139924bf5 vm: Use the old FreeBSD os-freebsd.cpp so we don't need procfs installed (it's not mounted by default). 2019-02-08 22:07:02 +00:00
Jack Lucas 3154242a3a Re-add Freebsd Support 2019-02-08 19:17:30 -05:00
Doug Coleman e6e7655cbd vm: Fix some really minor warnings. 2018-07-27 21:35:55 -05:00
Doug Coleman 2a409c79e0 vm: Fix unused variable warnings on Windows. 2018-07-13 00:48:58 -05:00
Doug Coleman 0939974c65 contexts.cpp: Don't warn on unused variables. 2018-07-13 00:00:55 -05:00
Doug Coleman aa87e69d25 Revert "VM: removing the unused callstack-bounds primitive"
This reverts commit c55a6ef873.

This primitive is useful for fixing the macOS pthread bug and the javascriptcore library.
2018-06-03 22:12:28 -05:00
John Benediktsson 1d8ca2c835 vm/mach_signal.cpp: didn't need mach_msg_return_t. 2018-05-03 19:17:33 -07:00
John Benediktsson dd5be66957 vm: fix COMPILE-TIME to use __DATE__ and __TIME__
Those are "time the preprocessor is run", not "date and time of the last
modification of the current source file" like __TIMESTAMP__.
2018-03-22 10:41:34 -07:00
Cat Stevens 21cb42edf3 cast fixes undefined behaviour; closes #1919 in upstream 2018-01-31 17:15:54 +01:00
Björn Lindqvist d454072564 VM: init object_counter, silences valgrind #1886 2018-01-26 17:17:29 +01:00
Björn Lindqvist 0100d22809 VM: removing init_globals(), calling init_mvm() instead 2017-06-30 22:47:11 +02:00
Björn Lindqvist b20084317a VM: removing the annotations to please musl (#1836) 2017-06-26 17:43:14 +02:00
Björn Lindqvist 134a9fbcb4 VM: we can save the process by throwing a normal error here 2017-06-25 01:43:31 +02:00
Björn Lindqvist abbf8f8f1f VM: merging the profiling_sample and profiling_sample_count classes
This refactoring makes the code a bit simpler.
2017-06-25 01:17:12 +02:00
John Benediktsson 42ef8adec6 vm: change -nosignals to -no-signals. 2017-01-20 22:36:22 -08:00
Björn Lindqvist 20a98a38fb VM: undo 7d9bad465c
It cause the code heap to run out of memory to soon and without growth,
it crashed windows.
2016-12-15 00:49:38 +01:00
Björn Lindqvist 4737645857 VM: this struct isn't used anymore 2016-12-15 00:29:37 +01:00
Björn Lindqvist ee0b34a469 VM: don't need the data_roots here 2016-11-30 16:36:25 +01:00
Björn Lindqvist d73666b9d0 VM: the unimplemented error isn't used anymore
Cause all the primitives are implemented so it can never ever be
thrown. Probably requires new boot images.
2016-11-23 10:24:52 +01:00
Björn Lindqvist 0590ebf914 VM: storing some sample data in the heap (#337)
This is the first half of it. In the second half the samples array
should also be stored in the heap.
2016-11-23 09:44:17 +01:00
Björn Lindqvist 90b7f9ceb3 VM: here, going through the data_root isn't needed 2016-11-23 08:17:39 +01:00
Björn Lindqvist 9927c92cbd VM: better to use a "normal" for-loop here 2016-11-23 06:42:06 +01:00
Björn Lindqvist 7661ed3b57 VM: replacing the copy assignment operators of the smart pointers
Little more to write, but much easier to see what is going on with
methods rather than assignment operator overloading.
2016-11-23 06:42:06 +01:00
Björn Lindqvist 3b3cc151e9 VM: removing factor_vm::init_contexts() 2016-11-23 06:42:06 +01:00
Björn Lindqvist 1a646d3379 VM: removing array_to_stack() from the factor_vm class 2016-11-23 06:42:06 +01:00
Björn Lindqvist c55a6ef873 VM: removing the unused callstack-bounds primitive
Probably needs new boot images
2016-11-21 22:30:20 +01:00
Björn Lindqvist e4bdbf1503 VM: better init of stdin, stdout and stderr 2016-11-21 20:40:25 +01:00
Björn Lindqvist 9055ff5189 VM: ensuring all fields are initialized 2016-11-21 04:47:48 +01:00
Björn Lindqvist abf497938b Revert "VM: cast to fixnum looks suspicious"
This reverts commit 5027830b05.
2016-11-16 05:23:54 +01:00
Björn Lindqvist 5027830b05 VM: cast to fixnum looks suspicious 2016-11-15 05:58:11 +01:00
Björn Lindqvist 5f869f8181 VM: the else clause is not necessary 2016-11-15 05:57:40 +01:00
Björn Lindqvist 69acbbbefd VM: next_block_after can be removed 2016-11-15 03:49:46 +01:00
Björn Lindqvist 94b274490c Revert "VM: undo a8aaa42882 (#1513)"
This reverts commit e50ef532ca.
2016-11-12 00:19:52 +01:00
Björn Lindqvist e50ef532ca VM: undo a8aaa42882 (#1513) 2016-11-11 17:36:04 +01:00
Björn Lindqvist 0b6ffdc77e Revert "VM: undoing 0274e889b9 (#1513)"
This reverts commit a4802aba68.
2016-11-09 02:07:56 +01:00
Björn Lindqvist a4802aba68 VM: undoing 0274e889b9 (#1513) 2016-11-08 13:37:52 +01:00
Björn Lindqvist 2308ca06e0 Revert "VM: undoing 22bb0cfecf (#1513)"
This reverts commit e9c72baf2e.
2016-11-07 23:43:50 +01:00
Björn Lindqvist e9c72baf2e VM: undoing 22bb0cfecf (#1513) 2016-11-07 14:18:10 +01:00
John Benediktsson 4fee8bd2cb vm: change where we set safepoints_fep to false to allow old Ctrl-C behavior. 2016-11-01 19:21:47 -07:00
Alexander Iljin 0245a93bee VM: add enable-ctrl-break and disable-ctrl-break primitives
These are for the Listener to wrap around user-supplied quotations. Nesting
is not supported at the moment.
2016-11-01 16:53:00 -07:00