mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 02:04:35 +00:00
Merge pull request #1107 from stephen-hqxu/cuda-default-function
Force no default function when using CUDA #1107
This commit is contained in:
commit
38b7a1a983
@ -212,14 +212,16 @@
|
|||||||
// N2346
|
// N2346
|
||||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||||
# define GLM_HAS_DEFAULTED_FUNCTIONS __has_feature(cxx_defaulted_functions)
|
# define GLM_HAS_DEFAULTED_FUNCTIONS __has_feature(cxx_defaulted_functions)
|
||||||
|
#elif GLM_COMPILER & GLM_COMPILER_CUDA
|
||||||
|
// Do not use defaulted functions for CUDA compiler when function qualifiers are present
|
||||||
|
# define GLM_HAS_DEFAULTED_FUNCTIONS 0
|
||||||
#elif GLM_LANG & GLM_LANG_CXX11_FLAG
|
#elif GLM_LANG & GLM_LANG_CXX11_FLAG
|
||||||
# define GLM_HAS_DEFAULTED_FUNCTIONS 1
|
# define GLM_HAS_DEFAULTED_FUNCTIONS 1
|
||||||
#else
|
#else
|
||||||
# define GLM_HAS_DEFAULTED_FUNCTIONS ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
|
# define GLM_HAS_DEFAULTED_FUNCTIONS ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
|
||||||
((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)) || \
|
((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)) || \
|
||||||
((GLM_COMPILER & GLM_COMPILER_INTEL)) || \
|
((GLM_COMPILER & GLM_COMPILER_INTEL)) || \
|
||||||
(GLM_COMPILER & GLM_COMPILER_CUDA)) || \
|
((GLM_COMPILER & GLM_COMPILER_HIP))))
|
||||||
((GLM_COMPILER & GLM_COMPILER_HIP)))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// N2118
|
// N2118
|
||||||
|
Loading…
Reference in New Issue
Block a user