Skip to content

[Feature request] Support for using more than one compiler in a build #6

@csullivan

Description

@csullivan

It would be wonderful if there was a way to specify a different compiler for compiling objects from sources with a specific extension. For example

CUSTOM_COMPILER = nvcc (NVIDIA CUDA compiler)
CUSTOM_SOURCE_EXT = .cu
CUSTOM_COMPILER_FLAGS = ...
CUSTOM_COMPILER_LINK_FLAGS = ...
etc.

with the resulting object files being treated in the same manner as all other files, being linked in to executables and libraries as necessary. As it is, I have a separate makefile, which MagicMake calls first to compile the "custom" objects, and then they are explicitly listed in EXTERNAL_STATIC_OBJECTS. This becomes more of an issue when the two types of sources have mutual dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions