Rate This Document
Findability
Accuracy
Completeness
Readability

Common Compilation

Common compilation provides basic remote compilation capabilities and supports visualized compilation parameter configuration, one-click compilation, and real-time display of compilation information. During compilation, you can open only one project folder in VS Code.

Prerequisites

  • You have logged in to the Kunpeng DevKit.
  • You have installed the Compiler and Debugger and configured the target server.
  • In the Resource Manager of VS Code, the folder of the local source program has been opened.

Procedure

  1. Click in the navigation pane on the left, or click Development and then click Compile under Compiler and Debugger to display the compilation page.
  2. Select Common compilation and set the other parameters, as shown in Figure 1. After the configuration is complete, click Start.
    Figure 1 Common compilation
    Table 1 Common compilation parameters

    Parameter

    Description

    Local Project Path

    Local path for storing the current project file.

    Compilation Type

    The compilation type can be:

    • Common compilation
    • AutoFDO compilation

    Configured Remote Server

    Remote server for completing the compilation.

    Use an existing server or add a target server. Click Add Target Server to go to the target server management page. .

    Linux Password

    Password of the Linux user.

    Remember password

    If this option is selected, the Linux user password of the current remote server will be remembered.

    Workspace

    Path for storing the code synchronized to the target server.

    NOTE:

    You can click Modify workspace to modify the workspace path.

    Compile Command (command)

    Command for starting the compilation.

    NOTE:

    Exercise caution when running risky commands such as rm.

  3. Click Start to synchronize code to the target server and perform the compilation. After the synchronization and compilation are complete, the corresponding information is displayed at the output window, as shown in Figure 2.
    Figure 2 Common compilation succeeded

    To perform common compilation again, click in the navigation pane on the left or click Compile.

  4. To modify common compilation parameters, choose > Project Settings > Compile. Set Compilation Type to Common compilation, modify the configuration parameters, and click Save.
    Figure 3 Modifying common compilation parameters