Introduce DefineNativeToolchain to handle toolchain configurations

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: infrastructure
    • b61

        The macro SetupNativeCompilation handles various overrides of the compiler and linker used for compilation. There is also a LANG option, which implies that it needs to be told if it's compiling C or C++ when in reality, this is handled automatically. The real purpose of the LANG option is just to decide which executable to use for linking in certain conditions/platforms.

        I would like to put some more structure around this by introducing a new macro, DefineNativeToolchain. There will be a default and a couple of others, extending the default, for linking with the C++ compiler, building for the build platform etc. These definitions will help ensure that all the necessary executables and options are overridden for each of these usecases.

              Assignee:
              Erik Joelsson
              Reporter:
              Erik Joelsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: