Skip to content

Commit

Permalink
do not allow precompiled headers with clang by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rok-cesnovar committed Sep 17, 2021
1 parent 602320b commit 8134766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions makefile
Expand Up @@ -108,11 +108,15 @@ endif
STAN_FLAGS=$(STAN_FLAG_THREADS)$(STAN_FLAG_MPI)$(STAN_FLAG_OPENCL)

ifeq ($(OS),Windows_NT)
ifeq (clang,$(CXX_TYPE))
PRECOMPILED_HEADERS ?= false
else
ifeq ($(shell expr $(CXX_MAJOR) \>= 8), 1)
PRECOMPILED_HEADERS ?= true
else
PRECOMPILED_HEADERS ?= false
endif
endif
else
PRECOMPILED_HEADERS ?= true
endif
Expand Down

0 comments on commit 8134766

Please sign in to comment.