9f2e5cdc4d
If a source set is used in only one compilation, take the options from its compile task. If a source set is used by multiple compilations of a single target, either choose the 'main' compilation or choose any (this will happen for Android, and it looks OK for the first time). If there are multiple compilations of different targets, use the metadata compilation. Issue #KT-27499 In Progress