Single file compilation arguments

Is it possible to add additional compilation arguments a single file when building a module?
I am using Xcode and set additional compiler flags to a specific file in the "Compiler Source" Build Phase, but they are being ignored.
I think it is not possible with Swift only with Objective-C, because Swift is compiling the module in batches or whole module, but I wanted to confirm it that is right.