Browse Source

Copy the Clang builtin headers as part of the build if they are available.

pull/513/merge
João Matos 10 years ago
parent
commit
d078e4aeae
  1. 6
      src/CppParser/premake4.lua

6
src/CppParser/premake4.lua

@ -15,6 +15,12 @@ project "CppSharp.CppParser" @@ -15,6 +15,12 @@ project "CppSharp.CppParser"
flags { common_flags }
flags { "NoRTTI" }
local copy = os.is_windows() and "xcopy /Q /E /Y /I" or "cp -rf";
local headers = path.getabsolute(path.join(LLVMRootDir, "lib/"))
if os.isdir(headers) then
postbuildcommands { copy .. " " .. headers .. " %{cfg.targetdir}" }
end
configuration "vs*"
buildoptions { clang_msvc_flags }

Loading…
Cancel
Save