Difference between revisions of "Emacs-Flycheck"
From Coder Merlin
Line 21: | Line 21: | ||
* https://owensd.io/2015/01/14/compiling-individual-files/ | * https://owensd.io/2015/01/14/compiling-individual-files/ | ||
* https://modocache.io/reading-and-understanding-the-swift-driver-source-code | * https://modocache.io/reading-and-understanding-the-swift-driver-source-code | ||
== Notes == | |||
* Example command lines - What's happening during a regular build | |||
** swiftc -c -### main.swift help.swift -module-name main | |||
** /opt/swift-5.0.1-RELEASE-ubuntu18.04/usr/bin/swift -frontend -c -primary-file main.swift help.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -color-diagnostics -module-name main -o main.o | |||
** /opt/swift-5.0.1-RELEASE-ubuntu18.04/usr/bin/swift -frontend -c main.swift -primary-file help.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -color-diagnostics -module-name main -o help.o | |||
* Example command line - sufficient for FlyCheck | |||
** swift -frontend -typecheck -c -primary-file main.swift help.swift |
Revision as of 12:51, 14 June 2019
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Show Errors[edit]
- M-x flycheck-list-errors
Verify Flycheck Results[edit]
- M-x flycheck-compile
Configuration[edit]
View Flycheck Configuration Options[edit]
- M-x customize-group RET flycheck-options
Customize Options[edit]
- M-x customize RET
- Enter 'flycheck-options'
- Edit variables in buffer
- Flycheck Swift3 Import Search Paths
- Include Igis path
- Flycheck Swift3 Import Search Paths
References[edit]
- https://github.com/apple/swift/blob/master/docs/Driver.md
- https://medium.com/xcblog/a-brief-overview-of-swift-compiler-7af0bd684718
- https://owensd.io/2015/01/14/compiling-individual-files/
- https://modocache.io/reading-and-understanding-the-swift-driver-source-code
Notes[edit]
- Example command lines - What's happening during a regular build
- swiftc -c -### main.swift help.swift -module-name main
- /opt/swift-5.0.1-RELEASE-ubuntu18.04/usr/bin/swift -frontend -c -primary-file main.swift help.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -color-diagnostics -module-name main -o main.o
- /opt/swift-5.0.1-RELEASE-ubuntu18.04/usr/bin/swift -frontend -c main.swift -primary-file help.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -color-diagnostics -module-name main -o help.o
- Example command line - sufficient for FlyCheck
- swift -frontend -typecheck -c -primary-file main.swift help.swift