Details
- Reviewers
MaskRay aykevl dylanmckay
Diff Detail
Event Timeline
avr-gcc -E -dM -xc /dev/null -dM | grep __avr has no result, so I am not sure this is correct.
The reason I added these little case macros, is that I find other backend targets have, as shown in the compiler-rt's CMakefile, https://github.com/llvm/llvm-project/blob/main/compiler-rt/cmake/Modules/CompilerRTUtils.cmake#L155
I think we need not strictly follow avr-gcc's way, my final goal is making clang+llvm+compiler-rt+lld fully functional and can replace avr-gcc toolchain.
I expect clang+llvm+compiler-rt+lld to be fully functioning against the Arduino boards. (https://www.arduino.cc/).
Err, this is not sufficient justification to introduce new preprocessor macros. Changing the predefined macro set to make an in-tree cmake function happy. I am unsure this is the right thing.
If the cmake function isn't happy with a lowercase macro, can't you fix it?
I am not sure if there are other concerns of using lower case macros in compiler-rt's CMake, and I will check that.