Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
build project on my mac
Browse files Browse the repository at this point in the history
  • Loading branch information
uanhi committed Mar 7, 2021
1 parent 94360b7 commit 0160bc4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ node_modules
package-lock.json
.clang-format
*.exe
a.out
*.out
.idea
1.cc
.vscode
tmp
drift
g++
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DIR_SRC = ./src
DIR_TMP = ./tmp
CC = g++
# Local project compiler soft link to /usr/local/Cellar/gcc/10.2.0_3/bin/g++-10
CC = ./g++

SRC = $(wildcard ${DIR_SRC}/*.cpp)
TMP = $(wildcard $(DIR_TMP)/*.o)
Expand Down
20 changes: 16 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
The Drift Programming Language Implementation

- switch CC field in Makefile and specify your g++ compiler path

To build:

> g++ -std=c++20 drift.cc
> mv a.out drift
> make
> make install

To install:

> export PATH=$PWD:$PATH

To run:

> drift # REPL MODE
> drift <ft file> # FILE MODE
> drift # REPL MODE
> drift <ft file> # FILE MODE

> drift -d # REPL AND DEBUG MODE
> drift <ft file> -d # FILE AND DEBUG MODE

To clean:

> make clean

For documentation and project architecuture, visit the official website https://drift-lang.fun

Expand Down
Binary file removed drift
Binary file not shown.

0 comments on commit 0160bc4

Please sign in to comment.