Skip to content

Commit

Permalink
Merge pull request #48 from LLNL/bugfix/weiss27/uberenv-mac
Browse files Browse the repository at this point in the history
Some updates for uberenv TPL setup on macos
  • Loading branch information
kennyweiss committed May 30, 2019
2 parents 870e32d + c5a13ea commit 6c21792
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
5 changes: 3 additions & 2 deletions scripts/uberenv/packages/raja/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *
import os


class Raja(CMakePackage):
Expand All @@ -26,7 +27,7 @@ def cmake_args(self):

options = []

if 'bgq' in env["SYS_TYPE"]:
if 'bgq' in os.getenv('SYS_TYPE', ""):
options.extend(['-DBLT_CXX_FLAGS=-stdlib=libc++'])

if '+openmp' in spec:
Expand All @@ -41,4 +42,4 @@ def cmake_args(self):
'-DENABLE_CUDA=On',
'-DCUDA_TOOLKIT_ROOT_DIR=%s' % (spec['cuda'].prefix)])

return options
return options
6 changes: 3 additions & 3 deletions scripts/uberenv/packages/umpire/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack import *
import os


class Umpire(CMakePackage):
Expand All @@ -27,7 +27,7 @@ def cmake_args(self):

options = []

if 'bgq' in env["SYS_TYPE"]:
if 'bgq' in os.getenv('SYS_TYPE', ""):
options.extend(['-DENABLE_BENCHMARKS:BOOL=OFF',
'-DENABLE_TESTS:BOOL=OFF',
'-DENABLE_EXAMPLES:BOOL=OFF',
Expand All @@ -44,4 +44,4 @@ def cmake_args(self):
if '+fortran' in spec:
options.append('-DENABLE_FORTRAN=On')

return options
return options
12 changes: 12 additions & 0 deletions scripts/uberenv/spack_configs/darwin/compilers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ compilers:
f77: /usr/local/bin/gfortran
fc: /usr/local/bin/gfortran
spec: clang@9.0.0
- compiler:
environment: {}
extra_rpaths: []
flags: {}
modules: []
operating_system: mojave
paths:
cc: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
cxx: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
f77: /usr/local/bin/gfortran
fc: /usr/local/bin/gfortran
spec: clang@10.0.0-apple

0 comments on commit 6c21792

Please sign in to comment.