blob: 5856095e6f89d4ae5238837ba568566112deda76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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
|