X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmesa%2FSConscript;h=c986326d2bfa1ecda1b33fffc0de51f5c52d9b37;hb=89a61afdd7346d6e36caccc4d6f2a2607dc4a1f6;hp=a563fd2ff0153dbe0dd69d4ad56de2953e63fbf3;hpb=31e47a59ad542c72a56f1eee1b402b23d42e4475;p=mesa.git diff --git a/src/mesa/SConscript b/src/mesa/SConscript index a563fd2ff01..c986326d2bf 100644 --- a/src/mesa/SConscript +++ b/src/mesa/SConscript @@ -16,6 +16,7 @@ env.Append(CPPPATH = [ '#/src', '#/src/mapi', '#/src/glsl', + '#/src/glsl/nir', '#/src/mesa', '#/src/gallium/include', '#/src/gallium/auxiliary', @@ -130,9 +131,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()