summaryrefslogtreecommitdiffhomepage
path: root/build_config
diff options
context:
space:
mode:
Diffstat (limited to 'build_config')
-rw-r--r--build_config/clang-asan.rb2
-rw-r--r--build_config/dreamcast_shelf.rb2
-rw-r--r--build_config/host-f32.rb14
3 files changed, 16 insertions, 2 deletions
diff --git a/build_config/clang-asan.rb b/build_config/clang-asan.rb
index 5ee0d9129..19cc53bf0 100644
--- a/build_config/clang-asan.rb
+++ b/build_config/clang-asan.rb
@@ -1,7 +1,7 @@
MRuby::Build.new do |conf|
conf.toolchain :clang
# include the GEM box
- conf.gembox 'default'
+ conf.gembox 'full-core'
# Turn on `enable_debug` for better debugging
conf.enable_sanitizer "address,undefined"
diff --git a/build_config/dreamcast_shelf.rb b/build_config/dreamcast_shelf.rb
index a92770070..7e7d6a52e 100644
--- a/build_config/dreamcast_shelf.rb
+++ b/build_config/dreamcast_shelf.rb
@@ -20,7 +20,7 @@ MRuby::CrossBuild.new("dreamcast") do |conf|
# C compiler
# Flags were extracted from KallistiOS environment files
conf.cc do |cc|
- cc.command = "#{BIN_PATH}/sh-elf-gcc"
+ cc.command = "#{BIN_PATH}/sh-elf-gcc"
cc.include_paths << ["#{KOS_PATH}/include", "#{KOS_PATH}/kernel/arch/dreamcast/include", "#{KOS_PATH}/addons/include", "#{KOS_PATH}/../kos-ports/include"]
cc.flags << ["-O2", "-fomit-frame-pointer", "-ml", "-m4-single-only", "-ffunction-sections", "-fdata-sections", "-Wall", "-g", "-fno-builtin", "-ml", "-m4-single-only", "-Wl,-Ttext=0x8c010000", "-Wl,--gc-sections", "-T#{KOS_PATH}/utils/ldscripts/shlelf.xc", "-nodefaultlibs"]
cc.compile_options = %Q[%{flags} -o "%{outfile}" -c "%{infile}"]
diff --git a/build_config/host-f32.rb b/build_config/host-f32.rb
new file mode 100644
index 000000000..a449547ae
--- /dev/null
+++ b/build_config/host-f32.rb
@@ -0,0 +1,14 @@
+MRuby::Build.new do |conf|
+ # load specific toolchain settings
+ toolchain :gcc
+
+ # include the GEM box
+ conf.gembox 'default'
+
+ conf.cc.defines << 'MRB_USE_FLOAT32'
+
+ # Turn on `enable_debug` for better debugging
+ conf.enable_debug
+ conf.enable_test
+ conf.enable_bintest
+end