[PATCH] D133405: [Linux] Hack around Linux/sparc <bits/stdio-ldbl.h>
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 7 18:34:48 PDT 2022
MaskRay added a comment.
It's not a compiler's job to define this workaround... If a platform want to provide a built-in macro, you can use https://clang.llvm.org/docs/UsersManual.html#configuration-files and add `-D__NO_INLINE__` there.
To avoid magic behaviors, `${triple}-clang` loads `${triple}.cfg` while `clang` doesn't (see https://discourse.llvm.org/t/configuration-files/42529/24)
See also https://discourse.llvm.org/t/rfc-adding-a-default-file-location-to-config-file-support/63606 (I am somewhat concerned with `clang` loading a config).
But if you make `clang` a shell script that executes `sparc64-pc-linux-gnu-clang` or the like, I think it should be fine.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133405/new/
https://reviews.llvm.org/D133405
More information about the llvm-commits
mailing list