SConscript revision 13467
1955SN/A# Copyright 2018 Google, Inc.
2955SN/A#
31762SN/A# Redistribution and use in source and binary forms, with or without
4955SN/A# modification, are permitted provided that the following conditions are
5955SN/A# met: redistributions of source code must retain the above copyright
6955SN/A# notice, this list of conditions and the following disclaimer;
7955SN/A# redistributions in binary form must reproduce the above copyright
8955SN/A# notice, this list of conditions and the following disclaimer in the
9955SN/A# documentation and/or other materials provided with the distribution;
10955SN/A# neither the name of the copyright holders nor the names of its
11955SN/A# contributors may be used to endorse or promote products derived from
12955SN/A# this software without specific prior written permission.
13955SN/A#
14955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
18955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25955SN/A#
26955SN/A# Authors: Gabe Black
27955SN/A
282665Ssaidi@eecs.umich.eduImport('*')
294762Snate@binkert.org
30955SN/Afrom m5.util import compareVersions
315522Snate@binkert.orgfrom m5.util.terminal import termcap
326143Snate@binkert.org
334762Snate@binkert.orgif env['USE_SYSTEMC']:
345522Snate@binkert.org    if compareVersions(env['GCC_VERSION'], '5.0') < 0:
35955SN/A        print(termcap.Yellow + termcap.Bold +
365522Snate@binkert.org                'Warning: Disabling systemc on gcc versions less than 5.0.' +
37955SN/A                termcap.Normal)
385522Snate@binkert.org        env['USE_SYSTEMC'] = False
394202Sbinkertn@umich.edu        Return()
405742Snate@binkert.org
41955SN/A    env.Append(CPPPATH=Dir('ext'))
424381Sbinkertn@umich.edu