Skip to content

--out does not work with absolute paths #594

@rbehrends

Description

@rbehrends

If the --out option is provided to nimrod as an absolute path, it will treat it as a relative path regardless. This is because of the following code fragment in extccomp.nim:

      if not noAbsolutePaths():
        exefile = joinPath(splitFile(projectFile).dir, exefile)

The value of noAbsolutePaths() is true if either the --genScript or the --genMapping option is set. However, if either of these options is provided, the compilation process fails, because the C compiler is not given the correct paths to the generated .c files.

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