X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2FSConscript;h=434800e456029b677261809efd05e8af73dc2d6e;hb=75da9c9933a97e6f2baf0884b98350df800ee785;hp=72d98117378f6b7d252d513b54ff8c2865591aa6;hpb=e6330f9f56d6df2c59191513630d837ef3a7b1a9;p=mesa.git diff --git a/src/mesa/SConscript b/src/mesa/SConscript index 72d98117378..434800e4560 100644 --- a/src/mesa/SConscript +++ b/src/mesa/SConscript @@ -13,6 +13,7 @@ env = env.Clone() env.MSVC2013Compat() env.Append(CPPPATH = [ + '../compiler/nir', # for generated nir_opcodes.h, etc '#/src', '#/src/mapi', '#/src/glsl', @@ -39,7 +40,7 @@ else: # parse Makefile.sources source_lists = env.ParseSourceList('Makefile.sources') -env.Append(YACCFLAGS = '-d -p "_mesa_program_"') +env.Append(YACCFLAGS = ['-d', '-p', '_mesa_program_']) env.CFile('program/lex.yy.c', 'program/program_lexer.l') env.CFile('program/program_parse.tab.c', 'program/program_parse.y') @@ -82,8 +83,7 @@ format_unpack = env.CodeGenerate( # # Assembly sources # -if (env['gcc'] or env['clang']) and \ - env['platform'] not in ('cygwin', 'darwin', 'windows', 'haiku'): +if env['platform'] not in ('cygwin', 'darwin', 'windows', 'haiku'): if env['machine'] == 'x86': env.Append(CPPDEFINES = [ 'USE_X86_ASM', @@ -130,9 +130,10 @@ def write_git_sha1_h_file(filename): (commit, foo) = subprocess.Popen(args, stdout=subprocess.PIPE).communicate() except: # git log command didn't work - dirname = os.path.dirname(filename) - if not os.path.exists(dirname): - os.makedirs(dirname) + if not os.path.exists(filename): + dirname = os.path.dirname(filename) + if not os.path.exists(dirname): + os.makedirs(dirname) # create an empty file if none already exists f = open(filename, "w") f.close()