summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJoey <jyapayne@gmail.com>2018-07-15 10:54:50 +0900
committerGitHub <noreply@github.com>2018-07-15 10:54:50 +0900
commitab840f445e01fc7e9e01f4b29d390f1227513e22 (patch)
treea125c22641ba0a41a080f3f7a0a182ba62be252d
parent332469692d5053c6c935163e196b117b6979c8e7 (diff)
downloadNim-ab840f445e01fc7e9e01f4b29d390f1227513e22.tar.gz
Remove cross-platform breaking env var in Nintendo Switch config
This was bad to put in here, so my bad. It doesn't work on anything except platforms with shell support. Users can use `--passC` and `--passL` options for customization.
-rw-r--r--config/nim.cfg8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 626f4494a..c30190a18 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -111,10 +111,10 @@ path="$lib/pure"
 
 @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"
+  switch_gcc.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE"
+  switch_gcc.cpp.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE"
+  switch_gcc.options.always = "-g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -D__SWITCH__"
+  switch_gcc.cpp.options.always = "-g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -D__SWITCH__ -fno-rtti -fno-exceptions -std=gnu++11"
 @end
 
 # Configuration for the Intel C/C++ compiler: