Closed
Description
According to the documentation, a command like nim c -d:mingw test.nim
should invoke mingw. Unfortunately, it can't find the executable, even if I provide the command
nim c --path:/usr/local/bin -d:mingw test.nim
Note: the compiler exists at /usr/local/bin/x86_64-w64-mingw32-gcc
, not /usr/bin/x86_64-w64-mingw32-gcc
Example
echo "Hello World!"
Current Output
Hint: used config file '/usr/local/Cellar/nim/0.19.4/nim/config/nim.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
CC: test
CC: stdlib_system
Error: execution of an external compiler program '/usr/bin/x86_64-w64-mingw32-gcc -c -w -mno-ms-bitfields -I/usr/local/Cellar/nim/0.19.4/nim/lib -o /Users/teras/.cache/nim/test_d/test.c.o /Users/teras/.cache/nim/test_d/test.c' failed with exit code: 127
/bin/sh: /usr/bin/x86_64-w64-mingw32-gcc: No such file or directory
Expected Output
To properly compile!
Possible Solution
The compiler should be able to accept the path, and not hard code the path of the copiler?
Additional Information
$ nim -v
Nim Compiler Version 0.19.4 [MacOSX: amd64]
Compiled at 2019-02-07
Copyright (c) 2006-2018 by Andreas Rumpf
active boot switches: -d:release -d:useLinenoise
Activity