diff options
author | 2019-02-04 10:05:46 -0800 | |
---|---|---|
committer | 2019-02-04 13:05:46 -0500 | |
commit | e769e76ce4fb38d535cf32d27cf35c278ff207e0 (patch) | |
tree | 8568a04c0196c576ff8d8a2a3f2bbb8d9b1bc225 /scripts | |
parent | e22ffab3fa855e8624d090996b53376d4c6756e0 (diff) |
enable sub-second snapshot timers (nw) (#4493)
* enable sub-second snapshot timers (nw)
* switch to attotime, accept doubles
* support LLVM extension in MSVC
make vsllvm
using extension from here:
https://marketplace.visualstudio.com/items?itemName=LLVMExtensions.llvm-toolchain
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genie.lua | 23 | ||||
-rw-r--r-- | scripts/src/3rdparty.lua | 28 | ||||
-rw-r--r-- | scripts/src/main.lua | 7 |
3 files changed, 58 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index 2696ad6db96..5d85297dfee 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1417,6 +1417,29 @@ configuration { "winphone8* or winstore8*" } linkoptions { "/ignore:4264" -- LNK4264: archiving object file compiled with /ZW into a static library; note that when authoring Windows Runtime types it is not recommended to link with a static library that contains Windows Runtime metadata } +configuration { "llvm" } + buildoptions { + "-Wno-tautological-constant-out-of-range-compare", + "-Wno-ignored-qualifiers", + "-Wno-missing-field-initializers", + "-Wno-ignored-pragma-optimize", + "-Wno-unknown-warning-option", + "-Wno-unused-function", + "-Wno-unused-label", + "-Wno-unused-local-typedef", + "-Wno-unused-const-variable", + "-Wno-unneeded-internal-declaration", + "-Wno-unused-private-field", + "-Wno-missing-braces", + "-Wno-unused-variable", + "-Wno-tautological-pointer-compare", + "-Wno-nonportable-include-path", + "-Wno-enum-conversion", + "-Wno-pragma-pack", + "-Wno-new-returns-null", + "-Wno-switch", + "-Wno-tautological-undefined-compare", + } -- adding this till we sort out asserts in debug mode diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index 2ccfa749e19..2a31b4ee392 100644 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -633,6 +633,12 @@ end "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration } + configuration { "vsllvm" } + buildoptions { + "-Wno-unused-function", + "-Wno-enum-conversion", + } + configuration { } defines { "WORDS_BIGENDIAN=0", @@ -970,6 +976,12 @@ end "SQLITE_OS_WINRT", } + configuration { "vsllvm" } + buildoptions { + "-Wno-deprecated-declarations", + "-Wno-unused-variable", + } + configuration { } files { @@ -1216,6 +1228,13 @@ project "bgfx" "/wd4611", -- warning C4611: interaction between '_setjmp' and C++ object destruction is non-portable "/wd4310", -- warning C4310: cast truncates constant value } + + configuration { "vsllvm" } + buildoptions { + "-Wno-unneeded-internal-declaration", + "-Wno-unused-const-variable", + } + if _OPTIONS["vs"]=="intel-15" then buildoptions { "/Qwd906", -- message #906: effect of this "#pragma pack" directive is local to function "xxx" @@ -1389,6 +1408,15 @@ project "portaudio" "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration } + configuration { "vsllvm" } + buildoptions { + "-Wno-deprecated-declarations", + "-Wno-missing-braces", + "-Wno-unused-variable", + "-Wno-switch", + "-Wno-unused-function", + } + configuration { "gmake or ninja" } buildoptions_c { "-Wno-strict-prototypes", diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 1184ff8ae9e..ad0e1a1d08c 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -420,6 +420,13 @@ if (STANDALONE~=true) then "@echo Emitting ".. rctarget .. "vers.rc...", PYTHON .. " \"" .. path.translate(MAME_DIR .. "scripts/build/verinfo.py","\\") .. "\" -r -b " .. rctarget .. " \"" .. path.translate(GEN_DIR .. "version.cpp","\\") .. "\" > \"" .. path.translate(GEN_DIR .. "resource/" .. rctarget .. "vers.rc", "\\") .. "\"" , } + + configuration { "vsllvm" } + prebuildcommands { + "mkdir \"" .. path.translate(GEN_DIR .. "resource/","\\") .. "\" 2>NUL", + "@echo Emitting ".. rctarget .. "vers.rc...", + PYTHON .. " \"" .. path.translate(MAME_DIR .. "scripts/build/verinfo.py","\\") .. "\" -r -b " .. rctarget .. " \"" .. path.translate(GEN_DIR .. "version.cpp","\\") .. "\" > \"" .. path.translate(GEN_DIR .. "resource/" .. rctarget .. "vers.rc", "\\") .. "\"" , + } end configuration { } |