diff options
| author | Mikkel Hjortshoej <fyoucon@gmail.com> | 2020-08-23 15:25:19 +0200 |
|---|---|---|
| committer | Mikkel Hjortshoej <fyoucon@gmail.com> | 2020-08-23 15:25:19 +0200 |
| commit | ae2fc5830e18d536909fdb816c73b240867bff69 (patch) | |
| tree | 9fb66bd426f74319cb47e56f25a1d0cf6003d520 /Makefile | |
| parent | 16b50a2f578a2038a747e7f42f330f845a92cd97 (diff) | |
Add git sha to `odin version` command
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,7 @@ +GIT_SHA=$(shell git rev-parse --short HEAD) DISABLED_WARNINGS=-Wno-switch -Wno-pointer-sign -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-macro-redefined LDFLAGS=-pthread -ldl -lm -lstdc++ -CFLAGS=-std=c++11 +CFLAGS=-std=c++11 -DGIT_SHA=\"$(GIT_SHA)\" CC=clang OS=$(shell uname) @@ -20,5 +21,8 @@ debug: release: $(CC) src/main.cpp $(DISABLED_WARNINGS) $(CFLAGS) -O3 -march=native $(LDFLAGS) -o odin +nightly: + $(CC) src/main.cpp $(DISABLED_WARNINGS) $(CFLAGS) -DNIGHTLY -O3 -march=native $(LDFLAGS) -o odin + |