Kokkos package: add debug variant (#11469)

This commit is contained in:
Andrew Gaspar 2019-05-16 18:35:23 -06:00 committed by Peter Scheibel
parent c03be0d65a
commit 8675f44d45

View File

@ -28,6 +28,8 @@ class Kokkos(Package):
version('2.02.15', 'de41e38f452a50bb03363c519fe20769')
version('2.02.07', 'd5baeea70109249f7dca763074ffb202')
variant('debug', default=False, description="Build debug version of Kokkos")
variant('serial', default=True, description="enable Serial backend (default)")
variant('pthreads', default=False, description="enable Pthreads backend")
variant('qthreads', default=False, description="enable Qthreads backend")
@ -148,6 +150,10 @@ def install(self, spec, prefix):
if '+pic' in spec:
g_args.append('--cxxflags=-fPIC')
# Build Debug
if '+debug' in spec:
g_args.append('--debug')
# Backends
if '+serial' in spec:
g_args.append('--with-serial')