添加 Nim 编译器

Nimble 包管理器使用 Nim 编译器为桌面平台生成 Nim 应用程序的可执行文件。

要使用 Nim 编译器构建应用程序:

  1. 选择“Preferences ” > “Kits ” > “Compilers ” > “Add ” > “Nim ”,以指定 Nim 编译器的路径。
  2. 选择“Apply ”以添加该编译器。
  3. 选择“Kits ” > “Add ”以添加用于使用 Nimble 构建应用程序的套件:

    在“套件”偏好设置中添加一个 Nimble 套件

    1. 在“Name ”字段中,为该套件指定一个名称。
    2. 在“Compiler ”组中的“Nim ”字段中,选择您上面添加的 Nim 编译器。
    3. 选择“Apply ”以添加该套件。

另请参阅 “添加编译器”“设置编译器首选项”、“创建 Nimble 项目”、“Nim”和“Nimble”

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.