mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Simplify generating LLVMC_BUILTIN_PLUGIN.
Patch by NAKAMURA Takumi! llvm-svn: 110680
This commit is contained in:
parent
ba7b4da6de
commit
2c1543bc9d
@ -238,58 +238,13 @@ ifneq ($(LLVMC_BUILTIN_PLUGINS),)
|
||||
|
||||
USEDLIBS += $(patsubst %,plugin_llvmc_%.a,$(LLVMC_BUILTIN_PLUGINS))
|
||||
|
||||
LLVMC_BUILTIN_PLUGIN_1 = $(word 1, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_2 = $(word 2, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_3 = $(word 3, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_4 = $(word 4, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_5 = $(word 5, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_6 = $(word 6, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_7 = $(word 7, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_8 = $(word 8, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_9 = $(word 9, $(LLVMC_BUILTIN_PLUGINS))
|
||||
LLVMC_BUILTIN_PLUGIN_10 = $(word 10, $(LLVMC_BUILTIN_PLUGINS))
|
||||
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_1),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_1=$(LLVMC_BUILTIN_PLUGIN_1)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_2),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_2=$(LLVMC_BUILTIN_PLUGIN_2)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_3),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_3=$(LLVMC_BUILTIN_PLUGIN_3)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_4),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_4=$(LLVMC_BUILTIN_PLUGIN_4)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_5),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_5=$(LLVMC_BUILTIN_PLUGIN_5)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_6),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_5=$(LLVMC_BUILTIN_PLUGIN_6)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_7),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_5=$(LLVMC_BUILTIN_PLUGIN_7)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_8),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_5=$(LLVMC_BUILTIN_PLUGIN_8)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_9),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_5=$(LLVMC_BUILTIN_PLUGIN_9)
|
||||
endif
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGIN_10),)
|
||||
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_5=$(LLVMC_BUILTIN_PLUGIN_10)
|
||||
endif
|
||||
LLVMC_BUILTIN_PLUGINS.pre := \
|
||||
$(patsubst %,-DLLVMC_BUILTIN_PLUGIN_%=, \
|
||||
1 2 3 4 5 6 7 8 9 10)
|
||||
|
||||
CPP.Flags += \
|
||||
$(filter-out $(LLVMC_BUILTIN_PLUGINS.pre) $(LLVMC_BUILTIN_PLUGINS), \
|
||||
$(join $(LLVMC_BUILTIN_PLUGINS.pre), $(LLVMC_BUILTIN_PLUGINS)))
|
||||
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user