Lines 1-15
Link Here
|
1 |
--- config/nim.cfg.orig 2019-07-22 09:41:23 UTC |
1 |
--- config/nim.cfg.orig 2019-07-22 09:41:23 UTC |
2 |
+++ config/nim.cfg |
2 |
+++ config/nim.cfg |
3 |
@@ -8,7 +8,7 @@ |
3 |
@@ -8,7 +8,11 @@ |
4 |
# Environment variables can be accessed like so: |
4 |
# Environment variables can be accessed like so: |
5 |
# gcc.path %= "$CC_PATH" |
5 |
# gcc.path %= "$CC_PATH" |
6 |
|
6 |
|
7 |
-cc = gcc |
7 |
-cc = gcc |
8 |
+cc = clang |
8 |
+@if powerpc64: |
|
|
9 |
+ cc = gcc |
10 |
+@else: |
11 |
+ cc = clang |
12 |
+@end |
9 |
|
13 |
|
10 |
# additional options always passed to the compiler: |
14 |
# additional options always passed to the compiler: |
11 |
--parallel_build: "0" # 0 to auto-detect number of processors |
15 |
--parallel_build: "0" # 0 to auto-detect number of processors |
12 |
@@ -105,12 +105,6 @@ path="$lib/pure" |
16 |
@@ -105,12 +109,6 @@ |
13 |
clang.cpp.options.linker = "-ldl" |
17 |
clang.cpp.options.linker = "-ldl" |
14 |
tcc.options.linker = "-ldl" |
18 |
tcc.options.linker = "-ldl" |
15 |
@end |
19 |
@end |
Lines 22-28
Link Here
|
22 |
@if haiku: |
26 |
@if haiku: |
23 |
gcc.options.linker = "-Wl,--as-needed -lnetwork" |
27 |
gcc.options.linker = "-Wl,--as-needed -lnetwork" |
24 |
gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork" |
28 |
gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork" |
25 |
@@ -132,7 +126,7 @@ path="$lib/pure" |
29 |
@@ -132,7 +130,7 @@ |
26 |
@end |
30 |
@end |
27 |
|
31 |
|
28 |
@if nintendoswitch: |
32 |
@if nintendoswitch: |
Lines 31-33
Link Here
|
31 |
switch_gcc.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE" |
35 |
switch_gcc.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE" |
32 |
switch_gcc.cpp.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE" |
36 |
switch_gcc.cpp.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE" |
33 |
switch_gcc.options.always = "-g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -D__SWITCH__" |
37 |
switch_gcc.options.always = "-g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -D__SWITCH__" |
|
|
38 |
@@ -154,7 +152,11 @@ |
39 |
@end |
40 |
|
41 |
@if macosx or freebsd: |
42 |
- cc = clang |
43 |
+ @if powerpc64: |
44 |
+ cc = gcc |
45 |
+ @else: |
46 |
+ cc = clang |
47 |
+ @end |
48 |
tlsEmulation:on |
49 |
gcc.options.always = "-w" |
50 |
gcc.cpp.options.always = "-w -fpermissive" |