[cfe-dev] x64 windows (MinGW) and "__declspec(dllimport)" emits a "unknown attribute warning"
Ruben Van Boxem
vanboxem.ruben at gmail.com
Tue Jul 19 05:52:59 PDT 2011
2011/7/19 NAKAMURA Takumi <geek4civic at gmail.com>:
>> Try lib/Sema/TargetAttributesSema.cpp.
> The last modification to the stuff was I. :D
> What is defined to LLVM_HOSTTRIPLE in your
> I am afraid Triple cannot parse "x86_64-w64-mingw32" correctly...
Both in config.h and llvm-config.h it is defined as
"x86_64-w64-mingw32". I also had a brief look at
LLVM/lib/Support/Triple.cpp and can't find anything that stands out
(except for the fact that the *-w64-* vs *-pc-* isn't handled, but as
far as I know, that's only used by GCC itself to differentiate certain
low-level aspects like library/crt/header locations when it builds
itself, nothing Clang needs to worry about yet).
More information about the cfe-dev