中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

GCC for openEuler

使用A-FOT工具时,需要填写配置项。 使用说明请参见使用说明

GCC for openEuler代码示例

  • 不使用A-FOT
    stages:          # List of stages for jobs, and their order of execution
      - build
      - test
      - deploy
    build-job:       # This job runs in the build stage, which runs first.
      stage: build
      script:
        # 安装部署完成后已有GCC for openEuler的环境,请先执行与其他平台一致的编译命令。
        - cd /path/to/repository
        # 执行原有的构建脚本
        - sh build.sh
  • 使用A-FOT(配置文件参数优化)
    stages:          # List of stages for jobs, and their order of execution
      - build
      - test
      - deploy
    build-job:       # This job runs in the build stage, which runs first.
      stage: build
      script:
        # a fot 会直接调用原有的构建脚本  
        a-fot --config_file a-fot.ini'
  • 使用A-FOT(以命令参数优化)
    stages:          # List of stages for jobs, and their order of execution
      - build
      - test
      - deploy
    build-job:       # This job runs in the build stage, which runs first.
      stage: build
      script:          
        a-fot  --opt_mode AutoFDO  --gcc_path /usr --run_script /root/run.sh --build_script /root/build.sh --build_mode Wrapper --work_path ./ --bin_file /tmp/test'