【发布时间】:2011-05-29 02:04:25
【问题描述】:
短片
这涉及 SciTE 和 Windows 中的 go 语言(特别是 Windows 7)。这是我第一次使用 SciTE,所以如果有其他方法可以实现我的目标也很好。
目标:一键编译、链接、执行新创建的二进制文件。
长篇
我想在 SciTE 的“go”命令下设置编译/链接/执行。这可能有点令人困惑,因为它也适用于 go language。这是我目前所拥有的:
command.compile.*.go=8g $(FileNameExt)
command.build.*.go=8l -o $(FileName).exe $(FileName).8
command.go.*.go=$(FileName).exe
我想要的是:
command.go.*.go=\
8g $(FileNamExt)\
8l -o $(FileName).exe $(FileName).8\
$(FileName).exe
如果这按我的预期工作,它将编译文件、链接它,然后运行可执行文件。会发生什么:
8g hello.go8l -o hello.exe hello.8hello.exe
什么时候应该:
8g hello.go
8l -o hello.exe hello.8
hello.exe
每行的执行位置。
【问题讨论】: