Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
otb
otb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 294
    • Issues 294
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 15
    • Merge Requests 15
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Merge Requests
  • !546

Open
Opened Jul 11, 2019 by Cédric Traizet@ctraizetDeveloper
  • Report abuse
Report abuse

CI: Use clang for ubuntu superbuild

  • Overview 30
  • Commits 12
  • Pipelines 24
  • Changes 5

Summary

Use clang when compiling xdk on ubuntu CI jobs.

Rationale

In CI ubuntu jobs, the Superbuild xdk is currently compiled with gcc while otb is compiled with clang.

In particular, this means that ITK is compiled with gcc whereas otb is compiled with clang. This is not a problem if we want to compile otb using ITK4: ITK uses the cmake WriteCompilerDetectionHeader function, which produces headers defining the allowed compilers when including ITK files. In ITK4 the list of allowed compilers is fixed (AppleClang Clang GNU MSVC SunPro and Intel) but in ITK5 the only compiler allowed is the one used to compile ITK.

Therefore we should use the same compiler for ITK and OTB

Copyright

The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved
  • At least 2 👍 votes from core developers, no 👎 vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
  • Optionally, run git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i on latest changes and commit
Edited Aug 27, 2019 by Cédric Traizet
Assignee
Assign to
Reviewer
Request review from
8.0.0
Milestone
8.0.0
Assign milestone
Time tracking
Reference: orfeotoolbox/otb!546
Source branch: ci_clang_superbuild