Skip to content

Compiler fails to run program if --out switch is used #738

@gradha

Description

@gradha

A simple hallo.nim program will compile but won't run with the -r switch if a configuration file is used to modify the name of the output binary:

out="hayhay.exe"

Then:

$ nimrod c -r hallo.nim
clang   -o /private/tmp/t/hayhay.exe  /private/tmp/t/nimcache/root_system.o /private/tmp/t/nimcache/t_hallo.o -ldl
Hint: operation successful (7845 lines compiled; 0.233 sec total; 12.128MB) [SuccessX]
/private/tmp/t/hallo 
sh: /private/tmp/t/hallo: No such file or directory
Error: execution of an external program failed

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