Skip to content

Commit 9fca1b4

Browse files
authored
Merge pull request #2437 from stan-dev/feature/issue-2420-2
Added STAN_NO_RANGE_CHECKS helper
2 parents 00e82e3 + 7ebacab commit 9fca1b4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/header_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ jobs:
7878

7979
- name: Run header tests
8080
run: |
81-
echo "CXXFLAGS+=-DSTAN_NO_RANGE_CHECKS" > make/local
81+
echo "STAN_NO_RANGE_CHECKS=true" > make/local
8282
./runTests.py -j2 ./test/unit/math/prim/err/

make/compiler_flags

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ CXX_MINOR := $(word 2,$(subst ., ,$(CXX_VERSION)))
9090
# LDFLAGS_MPI_FLTO: For adding flto options to MPI build
9191
##
9292

93+
ifdef STAN_NO_RANGE_CHECKS
94+
CXXFLAGS_THREADS ?= -DSTAN_NO_RANGE_CHECKS
95+
endif
96+
9397
################################################################################
9498
# Set default compiler flags
9599
#

0 commit comments

Comments
 (0)