mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Ports: Update mruby's patches to use git patches
This commit is contained in:
parent
37857a629d
commit
a2402faaf3
4 changed files with 54 additions and 12 deletions
35
Ports/mruby/patches/0002-Add-a-build-conf-for-serenity.patch
Normal file
35
Ports/mruby/patches/0002-Add-a-build-conf-for-serenity.patch
Normal file
|
@ -0,0 +1,35 @@
|
|||
From 0b19221cc06f6fda8120d1f1bde79ce0a43db8d5 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 2/2] 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
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue