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
- Click
in the shortcut menu area on the left, or click Development and choose Compile under Compiler and Debugger. On the compilation configuration page that is displayed, select Common compilation for Compilation Type and set other parameters as required. See Figure 1.
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.
- After the parameters are configured, 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.
To perform common compilation again, click
in the navigation pane on the left or click Compile. - 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

