mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-05-01 22:40:10 +10:00
Attempting a fix for macOS builds
This commit is contained in:
@@ -12,7 +12,7 @@ This repository holds the reference implementation for Toy version 2.x, written
|
|||||||
|
|
||||||
# Nifty Features
|
# Nifty Features
|
||||||
|
|
||||||
* Simple C-like/JS-like syntax
|
* Simple C-style syntax
|
||||||
* Intermediate AST and bytecode representations
|
* Intermediate AST and bytecode representations
|
||||||
* Strong, but optional type system
|
* Strong, but optional type system
|
||||||
* First-class functions and closures
|
* First-class functions and closures
|
||||||
@@ -24,18 +24,20 @@ This repository holds the reference implementation for Toy version 2.x, written
|
|||||||
|
|
||||||
Watch this space.
|
Watch this space.
|
||||||
|
|
||||||
(The `scripts` or `tests` directory might help.)
|
(The `scripts` or `tests` directory might help, the docs website is WIP.)
|
||||||
|
|
||||||
# Building
|
# Building
|
||||||
|
|
||||||
Watch this space.
|
This project requires `gcc` and `make` by default, but should also work in other environments. Officially supported platforms include `linux`, `windows` and `macOS`, see `source/toy_common.h` for implementation details.
|
||||||
|
|
||||||
(`make` and `make tests` might help.)
|
Run `make` in the root directory to build the shared library named `libToy.so` and a useable REPL named `repl.out`.
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
|
|
||||||
Watch this space.
|
Watch this space.
|
||||||
|
|
||||||
|
(There's some utility functions in `repl/` that are WIP but useful.)
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
|
|
||||||
Watch this space.
|
Watch this space.
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ CFLAGS+=-std=c17 -g -Wall -Werror -Wextra -Wpedantic -Wformat=2 -Wno-newline-eof
|
|||||||
LIBS+=-lm -lToy
|
LIBS+=-lm -lToy
|
||||||
LDFLAGS+=-Wl,-rpath,'$$ORIGIN'
|
LDFLAGS+=-Wl,-rpath,'$$ORIGIN'
|
||||||
|
|
||||||
|
ifeq ($(shell uname),Darwin) #make sure there's enough space for the dylib fix
|
||||||
|
LDFLAGS+=-Wl,-headerpad_max_install_names
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
#directories
|
#directories
|
||||||
REPL_ROOTDIR=..
|
REPL_ROOTDIR=..
|
||||||
REPL_REPLDIR=.
|
REPL_REPLDIR=.
|
||||||
|
|||||||
Reference in New Issue
Block a user