gcc: support without command line tools (#11040)

This commit is contained in:
Denis Davydov
2019-07-22 23:53:50 +02:00
committed by Greg Becker
parent 2d144316a8
commit 8cef81363c
2 changed files with 15 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
from spack.operating_systems.mac_os import macos_version
from spack.operating_systems.mac_os import macos_version, macos_sdk_path
from llnl.util import tty
import glob
@@ -315,6 +315,12 @@ def configure_args(self):
'--disable-bootstrap',
'--disable-multilib'])
if sys.platform == 'darwin':
options.extend([
'--with-native-system-header-dir=/usr/include',
'--with-sysroot={0}'.format(macos_sdk_path())
])
return options
# run configure/make/make(install) for the nvptx-none target