mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-03 17:02:03 +00:00
Make the CBackend actually get included in llc by using USEDLIBS instead of
USEDLIB as the variable to which "CBackend" is appended. The surrounding if clause is safe because currently the configure script ensures that the CBackend target is always added to TARGETS_TO_BUILD. By using a non-hard coded construct in the makefile, we gain uniformity and the ability to change the default set of targets by only changing the configure script. llvm-svn: 21474
This commit is contained in:
parent
420674160a
commit
ec6c11679f
@ -18,8 +18,10 @@ include $(LEVEL)/Makefile.config
|
||||
# Initialize the USEDLIBS so we can add to it
|
||||
USEDLIBS :=
|
||||
|
||||
# Always add the C Backend
|
||||
USEDLIB += LLVMCBackend
|
||||
# Check for LLVMCBackend target
|
||||
ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
|
||||
USEDLIBS += LLVMCBackend
|
||||
endif
|
||||
|
||||
# Check for Skeleton target
|
||||
ifneq ($(strip $(filter Skeleton,$(TARGETS_TO_BUILD))),)
|
||||
|
Loading…
Reference in New Issue
Block a user