diff --git a/Features/remove-platform-code.lua b/Features/remove-platform-code.lua index 03b82f8..15c8688 100644 --- a/Features/remove-platform-code.lua +++ b/Features/remove-platform-code.lua @@ -1,7 +1,7 @@ local feature = function() local platforms = {"win32", "linux", "xnu", "mac", "osx", "ios", "x86_64", "x86_32", "aarch", "arm64", "mips", "mips64", "riscv", "intel", "powerpc", "amiga", "unix", "android", "apple", "amd64", "freebsd", "bsd"} forEach(platforms, function(platform) - if (not _G[platform]) then + filter(auFilter({notPlatforms = platform, notArchs = platform})) then excludes("**/" .. platform .. "/**.*"); excludes("**/*" .. platform .. ".*"); end