Support @import of modules in Objective-C
While trying out infer on my project, it fails with the build error:
error: use of '@import' when modules are disabled
@import Foundation;
^
1 error generated.
I tried passing CLANG_ENABLE_MODULES=YES as an environment variable (it is already enabled in my project and xcodebuild runs cleanly), but seems to be ignored.
+1
and FWIW:
I can confirm -fmodules is included in the command-line params as well
This seems to be purposely turned off because the open-source clang doesn't support it:
https://github.com/facebook/infer/blob/master/infer/lib/clang/clang_wrapper#L18
+1
+1
+1
+1
+1
:+1:
+1
+1
++
Same issues for me
+1
+1
+1
+1
error: use of '@import' when modules are disabled @import Foundation; ^
I'm getting the same error. Any news when it will be fixed?
This issue has been addressed, please consider using the latest release available in: https://github.com/facebook/infer/releases/latest
Reopen this task if the problem still persists.
+1
+1