Skip to content
This repository was archived by the owner on Jun 2, 2019. It is now read-only.
This repository was archived by the owner on Jun 2, 2019. It is now read-only.

Per-File C/C++/ObjC Compiler Settings #27

@DavidLudwig

Description

@DavidLudwig

Hi. I'm just getting started with premake. I've been able to get pretty far in having it build a large, custom library, but am having issues getting it to compile some files with Objective-C ARC, and some without.

Using either a precompiled OSX binary of premake5 alpha 9, or a custom OSX build from a 'git clone' of 1d817779dff730ca1d39e496b3f8d182f863f3a4, attempting to add per-file compiler settings (to selectively enable, or disable, Objective-C ARC), such as through the following filter, doesn't seem to work:

filter "files:src/Foo.m"
    buildoptions { "-fobjc-arc" }

I'm not sure if this is the correct, premake5.lua syntax for doing per-file compiler settings, however, I did take a look through the Xcode plugin's source, and at a glance, it doesn't look like it has support to add the .xcodeproj text, 'settings = { COMPILER_FLAGS = "whatnot"; };', for specific files (via xcode.PBXBuildFile(tr), in premake-xcode's xcode_common.lua).

Cheers!
-- David L.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions