Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend: fix inconsistencies in
--genScript:on
mode (#802)
## Summary * Bugfix: Make compiler executable configurable in `--genScript:on` mode. That means you can now use command-line options like `--gcc.exe` or nim.cfg options like `clang.exe` with `--genScript:on` flag, and they will be respected. This is needed if compiler on the target machine (when cross-compiling) is named differently than the default. * Change: Use `--cincludes` option in `--genScript:on` mode. Since `cIncludes` paths can be specified only via cli, there should be no unintended side effects. This change is made for consistency. ## Details This PR changes behavior of the `getCompileCFileCmd` function in the `extccomp` module, in particular: * Make sure `getConfigVar(conf, c, ".exe")` always takes precedence over `getCompilerExe`, even when relative paths are requested. * Remove outdated code related to compiler executable formatting. None of defined compilers used format strings in the executable.
- Loading branch information