llvm / llvm/llvm-project

flang-new: a flag to opt-out from default runtime libraries linking on Windows

Open
#160,691 7 comments 1 reaction 0 assignees View on GitHub
flang:driver platform:windows
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

At the time flang-new (we use `flang version 20.1.8` for now) links the following libraries when targeting Windows (`x86_64-pc-win32`):

```
lld-link: error: could not open 'clang_rt.builtins.lib': No such file or directory
lld-link: error: could not open 'FortranRuntime.static.lib': No such file or directory
lld-link: error: could not open 'FortranDecimal.static.lib': No such file or directory
```

We run a distributed build system and thus need to have full control over every input, hence we pass flang-rt explicitly (and use our own naming schema).

I do not see an option to turn this behavior off.

Could you, please, add such flag?

At the time we pass three empty libraries to make lld-link work (and it looks like it is finally working).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.