From 954632bb0f791a298ea70460807ae6ccbc678f22 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 19 Dec 2020 16:45:52 +0100 Subject: [PATCH] [ld64] archive_file: fix compilation without LTO_SUPPORT Signed-off-by: Fabian Groffen --- ld64/src/ld/parsers/archive_file.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git ld64/src/ld/parsers/archive_file.cpp ld64/src/ld/parsers/archive_file.cpp index c09c40a..f13d3d6 100644 --- ld64/src/ld/parsers/archive_file.cpp +++ ld64/src/ld/parsers/archive_file.cpp @@ -514,6 +514,7 @@ bool File::forEachAtom(ld::File::AtomHandler& handler) const } } } +#ifdef LTO_SUPPORT else if ( validLTOFile(member->content(), member->contentSize(), _objOpts) ) { if ( lto::hasObjCCategory(member->content(), member->contentSize()) ) { MemberState& state = this->makeObjectFileForMember(member); @@ -525,6 +526,7 @@ bool File::forEachAtom(ld::File::AtomHandler& handler) const } } } +#endif } } return didSome; -- 2.38.1