Prechádzať zdrojové kódy

[commonlibsse-ng] Add `v3.7.0` (#2087)

* [commonlibsse-ng] Add `v3.7.0`

* [commonlibsse-ng] Fix flags
Qudix 2 rokov pred
rodič
commit
e89915ea45

+ 35 - 39
packages/c/commonlibsse-ng/port/xmake.lua

@@ -85,42 +85,38 @@ target("CommonLibSSE")
 
     -- add flags
     add_cxxflags("/permissive-")
-
-    on_config(function(target)
-        if target:has_tool("cxx", "cl") then
-            target:add("cxxflags", "/Zc:preprocessor", "/external:W0", "/bigobj")
-
-            -- warnings -> errors
-            target:add("cxxflags", "/we4715") -- `function` : not all control paths return a value
-
-            -- disable warnings
-            target:add("cxxflags", "/wd4005") -- macro redefinition
-            target:add("cxxflags", "/wd4061") -- enumerator `identifier` in switch of enum `enumeration` is not explicitly handled by a case label
-            target:add("cxxflags", "/wd4200") -- nonstandard extension used : zero-sized array in struct/union
-            target:add("cxxflags", "/wd4201") -- nonstandard extension used : nameless struct/union
-            target:add("cxxflags", "/wd4265") -- 'type': class has virtual functions, but its non-trivial destructor is not virtual; instances of this class may not be destructed correctly
-            target:add("cxxflags", "/wd4266") -- 'function' : no override available for virtual member function from base 'type'; function is hidden
-            target:add("cxxflags", "/wd4371") -- 'classname': layout of class may have changed from a previous version of the compiler due to better packing of member 'member'
-            target:add("cxxflags", "/wd4514") -- 'function' : unreferenced inline function has been removed
-            target:add("cxxflags", "/wd4582") -- 'type': constructor is not implicitly called
-            target:add("cxxflags", "/wd4583") -- 'type': destructor is not implicitly called
-            target:add("cxxflags", "/wd4623") -- 'derived class' : default constructor was implicitly defined as deleted because a base class default constructor is inaccessible or deleted
-            target:add("cxxflags", "/wd4625") -- 'derived class' : copy constructor was implicitly defined as deleted because a base class copy constructor is inaccessible or deleted
-            target:add("cxxflags", "/wd4626") -- 'derived class' : assignment operator was implicitly defined as deleted because a base class assignment operator is inaccessible or deleted
-            target:add("cxxflags", "/wd4710") -- 'function' : function not inlined
-            target:add("cxxflags", "/wd4711") -- function 'function' selected for inline expansion
-            target:add("cxxflags", "/wd4820") -- 'bytes' bytes padding added after construct 'member_name'
-            target:add("cxxflags", "/wd5026") -- 'type': move constructor was implicitly defined as deleted
-            target:add("cxxflags", "/wd5027") -- 'type': move assignment operator was implicitly defined as deleted
-            target:add("cxxflags", "/wd5045") -- compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
-            target:add("cxxflags", "/wd5053") -- support for 'explicit(<expr>)' in C++17 and earlier is a vendor extension
-            target:add("cxxflags", "/wd5105") -- macro expansion producing 'defined' has undefined behavior (workaround for older msvc bug)
-            target:add("cxxflags", "/wd5204") -- 'type-name': class has virtual functions, but its trivial destructor is not virtual; instances of objects derived from this class may not be destructed correctly
-            target:add("cxxflags", "/wd5220") -- 'member': a non-static data member with a volatile qualified type no longer implies that compiler generated copy / move constructors and copy / move assignment operators are not trivial
-        else
-            -- disable warnings
-            target:add("cxxflags", "-Wno-overloaded-virtual")
-            target:add("cxxflags", "-Wno-delete-non-abstract-non-virtual-dtor")
-            target:add("cxxflags", "-Wno-reinterpret-base-class")
-        end
-    end)
+    add_cxxflags("cl::/Zc:preprocessor", "cl::/external:W0", "cl::/bigobj")
+
+    -- warnings -> errors
+    add_cxxflags("cl::/we4715") -- `function` : not all control paths return a value
+
+    -- disable warnings
+    add_cxxflags("cl::/wd4005") -- macro redefinition
+    add_cxxflags("cl::/wd4061") -- enumerator `identifier` in switch of enum `enumeration` is not explicitly handled by a case label
+    add_cxxflags("cl::/wd4068") -- unknown pragma 'clang'
+    add_cxxflags("cl::/wd4200") -- nonstandard extension used : zero-sized array in struct/union
+    add_cxxflags("cl::/wd4201") -- nonstandard extension used : nameless struct/union
+    add_cxxflags("cl::/wd4265") -- 'type': class has virtual functions, but its non-trivial destructor is not virtual; instances of this class may not be destructed correctly
+    add_cxxflags("cl::/wd4266") -- 'function' : no override available for virtual member function from base 'type'; function is hidden
+    add_cxxflags("cl::/wd4371") -- 'classname': layout of class may have changed from a previous version of the compiler due to better packing of member 'member'
+    add_cxxflags("cl::/wd4514") -- 'function' : unreferenced inline function has been removed
+    add_cxxflags("cl::/wd4582") -- 'type': constructor is not implicitly called
+    add_cxxflags("cl::/wd4583") -- 'type': destructor is not implicitly called
+    add_cxxflags("cl::/wd4623") -- 'derived class' : default constructor was implicitly defined as deleted because a base class default constructor is inaccessible or deleted
+    add_cxxflags("cl::/wd4625") -- 'derived class' : copy constructor was implicitly defined as deleted because a base class copy constructor is inaccessible or deleted
+    add_cxxflags("cl::/wd4626") -- 'derived class' : assignment operator was implicitly defined as deleted because a base class assignment operator is inaccessible or deleted
+    add_cxxflags("cl::/wd4710") -- 'function' : function not inlined
+    add_cxxflags("cl::/wd4711") -- function 'function' selected for inline expansion
+    add_cxxflags("cl::/wd4820") -- 'bytes' bytes padding added after construct 'member_name'
+    add_cxxflags("cl::/wd5082") -- second argument to 'va_start' is not the last named parameter
+    add_cxxflags("cl::/wd5026") -- 'type': move constructor was implicitly defined as deleted
+    add_cxxflags("cl::/wd5027") -- 'type': move assignment operator was implicitly defined as deleted
+    add_cxxflags("cl::/wd5045") -- compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
+    add_cxxflags("cl::/wd5053") -- support for 'explicit(<expr>)' in C++17 and earlier is a vendor extension
+    add_cxxflags("cl::/wd5105") -- macro expansion producing 'defined' has undefined behavior (workaround for older msvc bug)
+    add_cxxflags("cl::/wd5204") -- 'type-name': class has virtual functions, but its trivial destructor is not virtual; instances of objects derived from this class may not be destructed correctly
+    add_cxxflags("cl::/wd5220") -- 'member': a non-static data member with a volatile qualified type no longer implies that compiler generated copy / move constructors and copy / move assignment operators are not trivial
+
+    add_cxxflags("clang::-Wno-overloaded-virtual")
+    add_cxxflags("clang::-Wno-delete-non-abstract-non-virtual-dtor")
+    add_cxxflags("clang::-Wno-reinterpret-base-class")

+ 1 - 0
packages/c/commonlibsse-ng/xmake.lua

@@ -5,6 +5,7 @@ package("commonlibsse-ng")
 
     add_urls("https://github.com/CharmedBaryon/CommonLibSSE-NG/archive/$(version).zip",
              "https://github.com/CharmedBaryon/CommonLibSSE-NG.git")
+    add_versions("v3.7.0", "c2fc2b5ac1c67ad4779bd0570c95fe494e0724f957a61880fa42cf74d1edce14")
     add_versions("v3.6.0", "6f84c36f5747cff73d6a95bc7b9de84b11601648b218fd3e69edc884cc94a5a8")
     add_versions("v3.5.6", "a3e1d4ec7496adca8310613fe75a2e08a9dbf562a9febec584b4e79aacc92bd3")
     add_versions("v3.5.5", "5b00de66b9b8bc300244f14f1a281f26961931ba28ed0f4c9cce3a30a77c784a")