mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:22:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
 | |
| From: Dante Catalfamo <dante.catalfamo@gmail.com>
 | |
| Date: Fri, 20 Aug 2021 00:38:31 -0400
 | |
| Subject: [PATCH] Add a build conf for serenity
 | |
| 
 | |
| ---
 | |
|  build_config/serenity.rb | 16 ++++++++++++++++
 | |
|  1 file changed, 16 insertions(+)
 | |
|  create mode 100644 build_config/serenity.rb
 | |
| 
 | |
| diff --git a/build_config/serenity.rb b/build_config/serenity.rb
 | |
| new file mode 100644
 | |
| index 0000000..b38f5ee
 | |
| --- /dev/null
 | |
| +++ b/build_config/serenity.rb
 | |
| @@ -0,0 +1,16 @@
 | |
| +MRuby::CrossBuild.new('serenity') do |conf|
 | |
| +  conf.toolchain :gcc
 | |
| +
 | |
| +  conf.archiver.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-ar"
 | |
| +  conf.linker.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-g++"
 | |
| +
 | |
| +  conf.cxx.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-g++"
 | |
| +  conf.cxx.defines << (ENV['SERENITY_ARCH'].include?('64') ? 'MRB_64BIT' : 'MRB_32BIT')
 | |
| +
 | |
| +  conf.cc.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-gcc"
 | |
| +  conf.cc.defines << (ENV['SERENITY_ARCH'].include?('64') ? 'MRB_64BIT' : 'MRB_32BIT')
 | |
| +
 | |
| +  conf.gembox 'full-core'
 | |
| +
 | |
| +  conf.test_runner.command = 'env'
 | |
| +end
 | 
