Browse Source

Workaround Premake issue when copying the resource include directories at build time.

Related to: https://github.com/premake/premake-core/issues/1232
pull/1274/head
Joao Matos 6 years ago committed by João Matos
parent
commit
1f4595dfbe
  1. 10
      build/LLVM.lua

10
build/LLVM.lua

@ -86,11 +86,17 @@ function CopyClangIncludes() @@ -86,11 +86,17 @@ function CopyClangIncludes()
if os.isdir(path.join(clangBuiltinRelease, "clang")) then
clangBuiltinIncludeDir = clangBuiltinRelease
end
end
end
if os.isdir(clangBuiltinIncludeDir) then
postbuildcommands { string.format('{COPY} "%s" "%%{cfg.buildtarget.directory}"', clangBuiltinIncludeDir) }
postbuildcommands
{
-- Workaround Premake OS-specific behaviour when copying folders:
-- See: https://github.com/premake/premake-core/issues/1232
'{MKDIR} "%%{cfg.buildtarget.directory}/lib"',
string.format('{COPY} "%s" "%%{cfg.buildtarget.directory}/lib"', clangBuiltinIncludeDir)
}
end
end

Loading…
Cancel
Save