Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 0c81f42

Browse files
committed
Legacy Makefiles: Don't force C++14 with GCC 4.8: round 2.
Bug 3043659 Bug 200618218 Reviewed-by: Allison Vacanti <[email protected]>
1 parent 80c0c37 commit 0c81f42

File tree

3 files changed

+29
-30
lines changed

3 files changed

+29
-30
lines changed

Makefile

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -111,35 +111,6 @@ else
111111
include ../build/common.mk
112112
endif
113113

114-
# Print host compiler version.
115-
116-
VERSION_FLAG :=
117-
ifeq ($(OS),$(filter $(OS),Linux Darwin))
118-
ifdef USEPGCXX # PGI
119-
VERSION_FLAG := -V
120-
else
121-
ifdef USEXLC # XLC
122-
VERSION_FLAG := -qversion
123-
else # GCC, ICC or Clang AKA the sane ones.
124-
VERSION_FLAG := --version
125-
endif
126-
endif
127-
else ifeq ($(OS),win32) # MSVC
128-
# cl.exe run without any options will print its version info and exit.
129-
VERSION_FLAG :=
130-
endif
131-
132-
CCBIN_ENVIRONMENT :=
133-
ifeq ($(OS), QNX)
134-
# QNX's GCC complains if QNX_HOST and QNX_TARGET aren't defined in the
135-
# environment.
136-
CCBIN_ENVIRONMENT := QNX_HOST=$(QNX_HOST) QNX_TARGET=$(QNX_TARGET)
137-
endif
138-
139-
$(info #### CCBIN : $(CCBIN))
140-
$(info #### CCBIN VERSION : $(shell $(CCBIN_ENVIRONMENT) $(CCBIN) $(VERSION_FLAG)))
141-
$(info #### CXX_STD : $(CXX_STD))
142-
143114
ifeq ($(OS), win32)
144115
CREATE_DVS_PACKAGE = $(ZIP) -r built/CUDA-thrust-package.zip bin thrust/internal/test thrust/internal/scripts thrust/internal/benchmark thrust/*.trs $(DVS_COMMON_TEST_PACKAGE_FILES)
145116
APPEND_H_DVS_PACKAGE = $(ZIP) -rg built/CUDA-thrust-package.zip thrust -9 -i *.h

internal/build/common_compiler.mk

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,31 @@ CUDACC_FLAGS += -Werror all-warnings
130130

131131
# Print warning numbers with cudafe diagnostics
132132
CUDACC_FLAGS += -Xcudafe --display_error_number
133+
134+
VERSION_FLAG :=
135+
ifeq ($(OS),$(filter $(OS),Linux Darwin))
136+
ifdef USEPGCXX # PGI
137+
VERSION_FLAG := -V
138+
else
139+
ifdef USEXLC # XLC
140+
VERSION_FLAG := -qversion
141+
else # GCC, ICC or Clang AKA the sane ones.
142+
VERSION_FLAG := --version
143+
endif
144+
endif
145+
else ifeq ($(OS),win32) # MSVC
146+
# cl.exe run without any options will print its version info and exit.
147+
VERSION_FLAG :=
148+
endif
149+
150+
CCBIN_ENVIRONMENT :=
151+
ifeq ($(OS), QNX)
152+
# QNX's GCC complains if QNX_HOST and QNX_TARGET aren't defined in the
153+
# environment.
154+
CCBIN_ENVIRONMENT := QNX_HOST=$(QNX_HOST) QNX_TARGET=$(QNX_TARGET)
155+
endif
156+
157+
$(info #### CCBIN : $(CCBIN))
158+
$(info #### CCBIN VERSION : $(shell $(CCBIN_ENVIRONMENT) $(CCBIN) $(VERSION_FLAG)))
159+
$(info #### CXX_STD : $(CXX_STD))
160+

internal/build/common_detect.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CXX_STD = c++14
1+
CXX_STD = c++11
22

33
ifeq ($(THRUST_TEST),1)
44
include $(ROOTDIR)/build/getprofile.mk

0 commit comments

Comments
 (0)