Skip to content

Commit 8b33220

Browse files
committed
tools: disable ObjC for wasm in SILFunctionExtractor
1 parent 9ee5911 commit 8b33220

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/sil-func-extractor/SILFunctionExtractor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ int main(int argc, char **argv) {
249249
Invocation.getLangOptions().DisableAvailabilityChecking = true;
250250
Invocation.getLangOptions().EnableAccessControl = false;
251251
Invocation.getLangOptions().EnableObjCAttrRequiresFoundation = false;
252+
if (Invocation.getLangOptions().Target.isOSBinFormatWasm())
253+
Invocation.getLangOptions().EnableObjCInterop = false;
252254

253255
serialization::ExtendedValidationInfo extendedInfo;
254256
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileBufOrErr =

0 commit comments

Comments
 (0)