git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Don't default to debug (or release) builds
commitf1fa8cc7dc993f3aa36dec247f5192cdba6adc8f authorAndy Arvanitis <andyarvanitis@gmail.com> dateFri 8 Feb 2019, 21:25 (8 years ago) parenteeb2e5d
2 files changed+12−1
README.md+1−1 support/Makefile+11
README.md+1−1
@@ -63,7 +63,7 @@ This assumes you are running macOS (OS X) or a Unix-like system (Linux, *BSD, et
63635. Use PureScript's standard [`psc-package`](https://psc-package.readthedocs.io/en/latest/) utility to add and manage package dependencies.
6464
65656. You should now be ready to build a PureScript program:
66− * As stated above, place your source file(s) in the working directory's `src` subdirectory and execute `make`. If your machine has multiple cores, you might want to use `make -jN`, where `N` is the number of cores.
66+ * As stated above, place your source file(s) in the working directory's `src` subdirectory and execute `make debug` or `make release`. If your build machine has multiple cores, you might want to append `-jN` to your *make* command, where `N` is the number of cores.
6767
6868 * This will generate the C++ source tree for your program and then build an executable binary. The resulting executable will be in the `bin` subdirectory under the output directory and called `main` (so `output/bin/main`, by default). Source files will be under `src` (`output/src/` by default).
6969
support/Makefile+11
@@ -43,6 +43,17 @@ PURESCRIPT_PKGS := $(firstword $(subst /, ,$(PACKAGE_SOURCES)))
4343## Not all environments support globstar (** dir pattern)
4444rwildcard=$(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2))
4545
46+unspecified:
47+ @echo
48+ @echo "Please specify the type of build you want: 'debug' or 'release'"
49+ @echo
50+ @echo " debug => not optimized (your app will run slower), good for"
51+ @echo " running in a source-level debugger, more (descriptive)"
52+ @echo " runtime exceptions"
53+ @echo
54+ @echo " release => optimized (your app will run faster), less helpful when debugging"
55+ @echo
56+
4657debug: codegen
4758 @$(MAKE) $(BIN) CFLAGS+=$(DEBUG) CXXFLAGS+=$(DEBUG)
4859