Search Unity

Setting compiler flags for native plugin?

Discussion in 'Entity Component System' started by lindyrock, Apr 9, 2021.

  1. lindyrock

    lindyrock

    Joined:
    Apr 12, 2019
    Posts:
    6
    I like the development process of editing my native code inside a cpp~ folder in my Assets folder. It gets built automatically and I can iterate with it every time I Build & Run. I want to be able to specify my C++ language standard (std=c++11/14/17) which would usually be a compiler flag on the command line. Can i specify what I need in Unity somehow? Trying to avoid building the plugin separately and dragging it into the Assets folder every time, just because that's clunky. Currently building in DOTS on Unity 2020.1. Testing build configuration Assets targeting Windows .NET Tiny and Wasm. Thanks!