[compiler-rt] 514371c - [compiler-rt][AVR] Fix avr_SOURCES CMake variable

Ayke van Laethem via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 17:29:40 PDT 2022


Author: Ayke van Laethem
Date: 2022-05-05T02:29:04+02:00
New Revision: 514371c3706d643b3556f1bef33be6902181d20f

URL: https://github.com/llvm/llvm-project/commit/514371c3706d643b3556f1bef33be6902181d20f
DIFF: https://github.com/llvm/llvm-project/commit/514371c3706d643b3556f1bef33be6902181d20f.diff

LOG: [compiler-rt][AVR] Fix avr_SOURCES CMake variable

D123200 did not include the generic sources, which means that only the
AVR-specific sources were compiled. With this change, generic sources
are included as expected.

Tested with the following commands:

    cmake -G Ninja -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=avr -DCOMPILER_RT_BAREMETAL_BUILD=1 -DCMAKE_C_COMPILER=clang-14 -DCMAKE_C_FLAGS="--target=avr -mmcu=avr5 -nostdlibinc -mdouble=64" ../path/to/builtins

    ninja

Differential Revision: https://reviews.llvm.org/D124969

Added: 
    

Modified: 
    compiler-rt/lib/builtins/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
index 31466898416a3..c9438879f279d 100644
--- a/compiler-rt/lib/builtins/CMakeLists.txt
+++ b/compiler-rt/lib/builtins/CMakeLists.txt
@@ -572,6 +572,7 @@ set(avr_SOURCES
   avr/mulqi3.S
   avr/mulhi3.S
   avr/exit.S
+  ${GENERIC_SOURCES}
 )
 
 # hexagon arch


        


More information about the llvm-commits mailing list