mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
Misc wrapper changes:
* Cleanup * xcrun: Add bitcode_strip to known Xcode tools
This commit is contained in:
parent
989c7f3b5f
commit
0ba6a543dd
@ -37,7 +37,7 @@ bool isXcodeTool(const char *tool) {
|
||||
"machocheck", "nm", "nmedit", "ObjectDump", "objdump", "otool",
|
||||
"pagestuff", "pkg-config", "ranlib", "redo_prebinding",
|
||||
"seg_addr_table", "seg_hack", "size", "strings", "strip", "sw_vers",
|
||||
"unwinddump", "xcodebuild", "xcrun"
|
||||
"unwinddump", "xcodebuild", "xcrun", "bitcode_strip"
|
||||
};
|
||||
|
||||
for (const char *xctool : XcodeTools)
|
||||
|
@ -236,12 +236,6 @@ bool Target::libCXXIsDefaultCXXLib() const {
|
||||
OSNum >= OSVersion(10, 9);
|
||||
}
|
||||
|
||||
bool Target::isLibCXX() const {
|
||||
return stdlib == StdLib::libcxx || libCXXIsDefaultCXXLib();
|
||||
}
|
||||
|
||||
bool Target::isLibSTDCXX() const { return stdlib == StdLib::libstdcxx; }
|
||||
|
||||
bool Target::isCXX() {
|
||||
if (isKnownCompiler())
|
||||
return (compiler == Compiler::CLANGXX || compiler == Compiler::GXX);
|
||||
@ -692,7 +686,7 @@ bool Target::setup() {
|
||||
}
|
||||
}
|
||||
} else if (isGCC()) {
|
||||
if (isCXX() && isLibCXX()) {
|
||||
if (isCXX() && stdlib == StdLib::libcxx) {
|
||||
fargs.push_back("-nostdinc++");
|
||||
fargs.push_back("-nodefaultlibs");
|
||||
|
||||
@ -701,7 +695,7 @@ bool Target::setup() {
|
||||
fargs.push_back("-lc++");
|
||||
fargs.push_back("-lgcc_s.10.5");
|
||||
}
|
||||
} else if (!isLibCXX() && !isGCH() &&
|
||||
} else if (stdlib != StdLib::libcxx && !isGCH() &&
|
||||
!getenv("OSXCROSS_GCC_NO_STATIC_RUNTIME")) {
|
||||
fargs.push_back("-static-libgcc");
|
||||
fargs.push_back("-static-libstdc++");
|
||||
|
@ -110,8 +110,6 @@ struct Target {
|
||||
|
||||
bool hasLibCXX() const;
|
||||
bool libCXXIsDefaultCXXLib() const;
|
||||
bool isLibCXX() const;
|
||||
bool isLibSTDCXX() const;
|
||||
|
||||
bool isCXX();
|
||||
bool isGCH();
|
||||
|
Loading…
Reference in New Issue
Block a user