diff options
author | Joey <jyapayne@gmail.com> | 2018-06-27 19:35:09 +0900 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-06-27 12:35:09 +0200 |
commit | 559a7615ad8e2e169aa9684f034c156881d88d4d (patch) | |
tree | e93f1f2ff0a85a556a5d867c7f541cf3e995502b /config | |
parent | b74b16ffde64262eeea57f36816a1a4b2d0cedfd (diff) | |
download | Nim-559a7615ad8e2e169aa9684f034c156881d88d4d.tar.gz |
Nintendo switch support (#8069)
* Add config section for Nintendo Switch * Add compiler configuration for Nintendo Switch and it's CPU * Add specific lib code for Nintendo Switch * Add GC support for Nintendo Switch * Update changelog for Nintendo Switch * Update changelog with more info about fixed paths * Cleaned up GC memory management a bit * Relocate docs for Switch * Rename aarch64NoneElfGcc to nintendoSwitchGCC * Remove armv8a57 * Fix installer.ini * Reuse code in linux and amd64 * Add posix defs for nintendo switch * Add more defined sections for nintendo switch * Remove old comment * Add what's not supported for Nintendo Switch docs * Make nintendoswitch == posix * Remove DEVKITPRO references from nim.cfg * Make PR extccomp changes * Remove Result type alias * Add separate switch consts file * Update docs for nintendo switch * Fix travis errors with undefined consts and add correct wait.h procs
Diffstat (limited to 'config')
-rw-r--r-- | config/nim.cfg | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg index e11826587..626f4494a 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -109,6 +109,14 @@ path="$lib/pure" @end @end +@if nintendoswitch: + cc = "switch_gcc" + switch_gcc.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE $SWITCH_LIBS" + switch_gcc.cpp.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE $SWITCH_LIBS" + switch_gcc.options.always = "-g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE $SWITCH_INCLUDES -D__SWITCH__" + switch_gcc.cpp.options.always = "-g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE $SWITCH_INCLUDES -D__SWITCH__ -fno-rtti -fno-exceptions -std=gnu++11" +@end + # Configuration for the Intel C/C++ compiler: @if windows: icl.options.speed = "/Ox /arch:SSE2" |