infer icon indicating copy to clipboard operation
infer copied to clipboard

Support @import of modules in Objective-C

Open streeter opened this issue 11 years ago • 20 comments

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.

streeter avatar Jun 11 '15 16:06 streeter

+1

and FWIW: screen shot 2015-06-11 at 1 07 22 pm I can confirm -fmodules is included in the command-line params as well

triage avatar Jun 11 '15 17:06 triage

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

loufranco avatar Jun 11 '15 19:06 loufranco

+1

dostrander avatar Jun 11 '15 19:06 dostrander

+1

sk- avatar Jun 11 '15 20:06 sk-

+1

dzlobin avatar Jun 11 '15 20:06 dzlobin

+1

nicarq avatar Jun 11 '15 21:06 nicarq

+1

kerrmarin avatar Jun 12 '15 08:06 kerrmarin

:+1:

bootstraponline avatar Jun 12 '15 12:06 bootstraponline

+1

qmoya avatar Jun 12 '15 15:06 qmoya

+1

vitormf avatar Jun 12 '15 15:06 vitormf

++

altyus avatar Jun 13 '15 02:06 altyus

Same issues for me

matt-oakes avatar Jun 13 '15 07:06 matt-oakes

+1

stavash-zz avatar Jun 13 '15 15:06 stavash-zz

+1

micahelcheng avatar Jun 15 '15 11:06 micahelcheng

+1

Mo7amedFouad avatar Jun 15 '15 12:06 Mo7amedFouad

+1

IanKeen avatar Jun 16 '15 01:06 IanKeen

error: use of '@import' when modules are disabled @import Foundation; ^

I'm getting the same error. Any news when it will be fixed?

artoyer avatar Jun 17 '15 12:06 artoyer

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.

martinoluca avatar Jun 18 '15 11:06 martinoluca

+1

muzixiaowu avatar Jan 21 '16 05:01 muzixiaowu

+1

zhangying19871987 avatar Mar 29 '16 02:03 zhangying19871987