summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJoey <jyapayne@gmail.com>2018-07-21 04:47:19 +0900
committerVarriount <Varriount@users.noreply.github.com>2018-07-20 14:47:19 -0500
commit2b6f324929ec2977f34fd3631beb04e0b24c7964 (patch)
treedb9b2b4581392c09448aefa29e1ad6ffdd093f90
parent9c3336dcffcb10f662f5c358f63d073db1454116 (diff)
downloadNim-2b6f324929ec2977f34fd3631beb04e0b24c7964.tar.gz
Add -w flag to Switch compilation to prevent deadlock (#8372)
See https://forum.nim-lang.org/t/4062.

The summary is that there are warnings printed when compiling and that causes a deadlock, likely due to output buffers being filled up. With the `-w` flag, the compiler outputs no warnings and the compilation is allowed to finish.
-rw-r--r--compiler/extccomp.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index 575e30a79..34628e363 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -92,7 +92,7 @@ compiler nintendoSwitchGCC:
     optSize: " -Os -ffast-math ",
     compilerExe: "aarch64-none-elf-gcc",
     cppCompiler: "aarch64-none-elf-g++",
-    compileTmpl: "-MMD -MP -MF $dfile -c $options $include -o $objfile $file",
+    compileTmpl: "-w -MMD -MP -MF $dfile -c $options $include -o $objfile $file",
     buildGui: " -mwindows",
     buildDll: " -shared",
     buildLib: "aarch64-none-elf-gcc-ar rcs $libfile $objfiles",