build all variations in CI to keep track of what works
This commit is contained in:
		
							parent
							
								
									ee7d6ac857
								
							
						
					
					
						commit
						4206dcc543
					
				
					 2 changed files with 62 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
CARGO ?= cargo
 | 
			
		||||
STRIP ?= strip
 | 
			
		||||
 | 
			
		||||
FEATURES :=
 | 
			
		||||
FEATURES := ""
 | 
			
		||||
 | 
			
		||||
THIS_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
 | 
			
		||||
REPO_ROOT := $(realpath $(THIS_DIR)/..)
 | 
			
		||||
| 
						 | 
				
			
			@ -10,7 +10,7 @@ export SERVICEPOINT_HEADER_OUT := $(REPO_ROOT)/include
 | 
			
		|||
override CFG_MUSL := $(if $(CFG_MUSL),$(CFG_MUSL),$(if $(MUSL),$(MUSL),0))
 | 
			
		||||
override CFG_PROFILE := $(if $(CFG_PROFILE),$(CFG_PROFILE),$(if $(PROFILE),$(PROFILE),release))
 | 
			
		||||
 | 
			
		||||
CCFLAGS += -Wall -fwhole-program
 | 
			
		||||
CCFLAGS += -Wall -fwhole-program -fPIE -pie
 | 
			
		||||
 | 
			
		||||
STRIPFLAGS := -s --strip-unneeded -R .comment -R .gnu.version -R .note -R .note.gnu.build-id -R .note.ABI-tag
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -18,7 +18,7 @@ ifeq ($(CFG_MUSL), 1)
 | 
			
		|||
	TARGET ?= x86_64-unknown-linux-musl
 | 
			
		||||
	CC ?= musl-gcc
 | 
			
		||||
	CCFLAGS += -static -lservicepoint_binding_c
 | 
			
		||||
	RUSTFLAGS += --crate-type=staticlib
 | 
			
		||||
	RUSTFLAGS += --crate-type=staticlib -Ctarget-feature=-crt-static
 | 
			
		||||
else
 | 
			
		||||
	TARGET ?= x86_64-unknown-linux-gnu
 | 
			
		||||
	CC ?= gcc
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue