SCons: cudakernels now depends on some configuration tests
This commit is contained in:
24
SConstruct
24
SConstruct
@@ -871,19 +871,21 @@ B.init_lib_dict()
|
|||||||
|
|
||||||
##### END SETUP ##########
|
##### END SETUP ##########
|
||||||
|
|
||||||
if B.targets != ['cudakernels']:
|
## Auto-configuration run-time tests
|
||||||
# Put all auto configuration run-time tests here
|
|
||||||
|
|
||||||
from FindSharedPtr import FindSharedPtr
|
from FindSharedPtr import FindSharedPtr
|
||||||
from FindUnorderedMap import FindUnorderedMap
|
from FindUnorderedMap import FindUnorderedMap
|
||||||
|
|
||||||
conf = Configure(env)
|
conf = Configure(env)
|
||||||
old_linkflags = conf.env['LINKFLAGS']
|
old_linkflags = conf.env['LINKFLAGS']
|
||||||
conf.env.Append(LINKFLAGS=env['PLATFORM_LINKFLAGS'])
|
conf.env.Append(LINKFLAGS=env['PLATFORM_LINKFLAGS'])
|
||||||
FindSharedPtr(conf)
|
|
||||||
FindUnorderedMap(conf)
|
# Put all tests here
|
||||||
conf.env['LINKFLAGS'] = old_linkflags
|
FindSharedPtr(conf)
|
||||||
env = conf.Finish()
|
FindUnorderedMap(conf)
|
||||||
|
|
||||||
|
conf.env['LINKFLAGS'] = old_linkflags
|
||||||
|
env = conf.Finish()
|
||||||
|
|
||||||
# End of auto configuration
|
# End of auto configuration
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user