mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	Add check and error to the BUILD module if OBJDIR option is set but object filenames are not unique.
This commit is contained in:
		
							parent
							
								
									7f29c468d7
								
							
						
					
					
						commit
						b2920402b4
					
				| @ -148,6 +148,11 @@ ifneq ($(OBJDIR),.) | |||||||
|    $(shell mkdir $(OBJDIR) 2> /dev/null)    |    $(shell mkdir $(OBJDIR) 2> /dev/null)    | ||||||
|    VPATH           += $(dir $(SRC)) |    VPATH           += $(dir $(SRC)) | ||||||
|    OBJECT_FILES    := $(addprefix $(patsubst %/,%,$(OBJDIR))/, $(notdir $(OBJECT_FILES))) |    OBJECT_FILES    := $(addprefix $(patsubst %/,%,$(OBJDIR))/, $(notdir $(OBJECT_FILES))) | ||||||
|  |     | ||||||
|  |    # Check if any object file (without path) appears more than once in the object file list | ||||||
|  |    ifneq ($(words $(sort $(OBJECT_FILES))), $(words $(OBJECT_FILES))) | ||||||
|  |        $(error Cannot build with OBJDIR parameter set - one or more object file name is not unique) | ||||||
|  |    endif | ||||||
| endif | endif | ||||||
| 
 | 
 | ||||||
| # Create a list of dependency files from the list of object files | # Create a list of dependency files from the list of object files | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera