From 8779d9596d99d8364e6d99285f0dbff836b1870c Mon Sep 17 00:00:00 2001 From: Reece Date: Tue, 18 Jan 2022 20:53:44 +0000 Subject: [PATCH] [*] unfuck remove-platform-code for legacy users --- Features/remove-platform-code.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Features/remove-platform-code.lua b/Features/remove-platform-code.lua index 15c8688..6e26bcd 100644 --- a/Features/remove-platform-code.lua +++ b/Features/remove-platform-code.lua @@ -1,10 +1,10 @@ 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) - filter(auFilter({notPlatforms = platform, notArchs = platform})) then + auFilter(auFilterOf({notPlatforms = platform, notArchs = platform})) excludes("**/" .. platform .. "/**.*"); excludes("**/*" .. platform .. ".*"); - end + auFilter{} end) excludes("**/arm/**"); -- whatever, we might name a file `arm` something, as in the limb, but a directory is far less likely for now