Set linker-flavor to ld.lld, leave linker at default

This commit is contained in:
Philipp Oppermann
2018-03-06 09:49:45 +01:00
parent 033144fd9c
commit d7e17b2f56
2 changed files with 3 additions and 5 deletions

View File

@@ -132,11 +132,10 @@ We add the following build-related entries:
```json ```json
"linker-flavor": "ld", "linker-flavor": "ld.lld",
"linker": "ld.lld",
``` ```
Instead of using the platform's default linker (which might not support Linux targets), we use the cross platform [LLD] linker for linking our kernel. Instead of using the platform's default linker (which might not support Linux targets), we use the cross platform [LLD] linker for linking our kernel. LLD is shipped with Rust since the `2018-03-05` nightly.
[LLD]: https://lld.llvm.org/ [LLD]: https://lld.llvm.org/

View File

@@ -6,8 +6,7 @@
"target-pointer-width": "64", "target-pointer-width": "64",
"target-c-int-width": "32", "target-c-int-width": "32",
"os": "none", "os": "none",
"linker-flavor": "ld", "linker-flavor": "ld.lld",
"linker": "ld.lld",
"executables": true, "executables": true,
"features": "-mmx,-sse,+soft-float", "features": "-mmx,-sse,+soft-float",
"disable-redzone": true, "disable-redzone": true,