cmark

My personal build of CMark ✏️

Commit
1e1a96d7607ac77759070dcac5e0cb2b72c4ddaa
Parent
6d2137fd8a43dd82eb494efc59d2c2ffdb05138b
Author
John MacFarlane <fiddlosopher@gmail.com>
Date

Added BUILDTYPE to Makefile, default to Release.

Previously we weren't building with release flags.

Diffstat

1 file changed, 3 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified Makefile 5 3 2
diff --git a/Makefile b/Makefile
@@ -7,14 +7,15 @@ SITE=_site
 BUILDDIR=build
 FUZZCHARS?=2000000  # for fuzztest
 PROG?=$(BUILDDIR)/src/cmark
+BUILDTYPE?=Release
 
 .PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site check
 
 all: check man/man1/cmark.1
-	mkdir -p $(BUILDDIR); cd build; cmake ..; make
+	mkdir -p $(BUILDDIR); cd build; cmake .. -DCMAKE_BUILD_TYPE=$(BUILDTYPE); make
 
 install: check
-	mkdir -p $(BUILDDIR); cd build; cmake ..; make install
+	mkdir -p $(BUILDDIR); cd build; cmake .. -DCMAKE_BUILD_TYPE=$(BUILDTYPE); make install
 
 clean:
 	rm -rf $(BUILDDIR)