SConscript (2836:c8f549058964) SConscript (2874:5389a28b80fb)
1# -*- mode:python -*-
2
3# Copyright (c) 2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 174 unchanged lines hidden (view full) ---

183
184if env['USE_CHECKER']:
185 sources += Split('checker/cpu.cc')
186 checker_supports = False
187 for i in CheckerSupportedCPUList:
188 if i in env['CPU_MODELS']:
189 checker_supports = True
190 if not checker_supports:
1# -*- mode:python -*-
2
3# Copyright (c) 2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 174 unchanged lines hidden (view full) ---

183
184if env['USE_CHECKER']:
185 sources += Split('checker/cpu.cc')
186 checker_supports = False
187 for i in CheckerSupportedCPUList:
188 if i in env['CPU_MODELS']:
189 checker_supports = True
190 if not checker_supports:
191 print "Checker only supports CPU models %s, please " \
192 "set USE_CHECKER=False or use one of those CPU models" \
193 % CheckerSupportedCPUList
191 print "Checker only supports CPU models",
192 for i in CheckerSupportedCPUList:
193 print i,
194 print ", please set USE_CHECKER=False or use one of those CPU models"
194 Exit(1)
195
196
197# FullCPU sources are included from src/SConscript since they're not
198# below this point in the file hierarchy.
199
200# Convert file names to SCons File objects. This takes care of the
201# path relative to the top of the directory tree.
202sources = [File(s) for s in sources]
203
204Return('sources')
205
195 Exit(1)
196
197
198# FullCPU sources are included from src/SConscript since they're not
199# below this point in the file hierarchy.
200
201# Convert file names to SCons File objects. This takes care of the
202# path relative to the top of the directory tree.
203sources = [File(s) for s in sources]
204
205Return('sources')
206