Skip to content

Commit 1b2eaa9

Browse files
back out of compiler optimization level settings
1 parent a84f680 commit 1b2eaa9

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ When you attempt to use functions from `TMB` when adding an engine function, you
7070

7171
We are [targeting support](https://github.com/canmod/macpan2/issues/125#issuecomment-1789434800) for both `C++14` and `C++17`. This means, for example, that we cannot use [variants](https://en.cppreference.com/w/cpp/utility/variant) because they were introduced in `C++17`.
7272

73-
## `C++` Compiler Optimization Level
74-
75-
The compiler optimization level, as well as other compiler flags, can be set in the `src/Makevars` file. We should keep it at level two (i.e., `-O2`) because it generally leads to much better run-time performance, although sometimes you might want to reduce compilation times during development by turning off optimization (i.e., `-O0`).
76-
7773
## Adding Engine Functions
7874

7975
If you need a function for defining model simulations that is not [currently supported by the C++ TMB engine](https://canmod.github.io/macpan2/reference/engine_functions), here is how you can add one.

Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
export R_MAKEVARS_USER := $(PWD)/src/Makevars
2-
3-
41
COMMA_RE = ^\([, ]*\)
52
ENUM_RE = [ ]*MP2_[A-Z_]*[ ]*=[ ]*[0-9][0-9]*
63
SED_RE = \(\,\)*[ ]*\/\/[ ]*\(.*\)
@@ -36,10 +33,6 @@ full-install:
3633
# haven't updated macpan.cpp (but have perhaps modified dev.cpp)
3734
# and (3) do not require a roxygen update.
3835
quick-install: enum-update enum-meth-update
39-
@echo "========"
40-
@echo "Contents of $(R_MAKEVARS_USER):"
41-
@cat $(R_MAKEVARS_USER)
42-
@echo "========"
4336
R CMD INSTALL --no-multiarch --install-tests .
4437

4538

src/Makevars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
PKG_CPPFLAGS=-DTMBAD_FRAMEWORK
2-
CXXFLAGS = -g -O2

0 commit comments

Comments
 (0)