improve gcc MACH signature

Change bDetected types to = true to sync our coding standards, remove an duplicated MACH variant which is already in use by the signature
This commit is contained in:
Benjamin Funke 2026-06-21 09:57:53 +02:00
commit 6b276f63cb

View file

@ -1,5 +1,6 @@
// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>
// Improved by: BJNFNE
meta("compiler", "gcc");
@ -7,22 +8,17 @@ function detect() {
/* if(MACH.isLibraryPresent("libstdc++.6.dylib"))
{
sOptions="libstdc++";
bDetected=1;
bDetected = true;
}
else if(MACH.isLibraryPresent("libc++.1.dylib"))
{
sOptions="C++";
bDetected=1;
}
else if(MACH.isLibraryPresent("libgcc_s.1.dylib"))
{
sOptions="C/C++";
bDetected=1;
bDetected = true;
}
else if(MACH.isLibraryPresent("libobjc.A.dylib"))
{
sOptions="Objective-C";
bDetected=1;
bDetected = true;
} */
if (MACH.isLibraryPresent("libgcc_s.1.dylib")) {