X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=SConstruct;h=8607d2cd8e0ab726039d02202e067c158ae75ff4;hb=e1510d48165abbfdbe5036b6eb1e4ae89b4ad5fb;hp=3908840086a126984da51b2d7e0b48c8fad19b8c;hpb=ae760279f142244590c8aa76e3139529ca42952f;p=mesa.git diff --git a/SConstruct b/SConstruct index 3908840086a..8607d2cd8e0 100644 --- a/SConstruct +++ b/SConstruct @@ -121,8 +121,6 @@ if env['platform'] in ('posix', 'linux', 'freebsd', 'darwin'): # for debugging #print env.Dump() -Export('env') - ####################################################################### # Invoke host SConscripts @@ -149,13 +147,25 @@ if env['crosscompile'] and env['platform'] != 'embedded': host_env.Tool('gallium') + host_env['hostonly'] = True + assert host_env['crosscompile'] == False + + if host_env['msvc']: + host_env.Append(CPPPATH = ['#include/c99']) + + target_env = env + env = host_env + Export('env') + SConscript( - 'src/glsl/SConscript', + 'src/SConscript', variant_dir = host_env['build_dir'], duplicate = 0, # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html - exports={'env':host_env}, ) + env = target_env + +Export('env') ####################################################################### # Invoke SConscripts