Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Issues
  • #3458
Closed
Open
Issue created Mar 19, 2019 by Hendrik Greving@hgreving2304Contributor

Use clang pre-processors for clang build and allow for other pre-processors in general.

Currently, only 'cpp' is used for various pre-processor commands during build, even for clang. CMAKE_CPP is set in make/cpp2asm_support.cmake.

This has the side effect that when trying to set global flags for only clang, this is currently not possible, because the build will fail when running cpp (g++) as pre-processor.

Some parts in the build rely on g++ being the processor, for example the template2expect functions in suite/tests/CMakeLists.txt seem to rely on properties of the g++ pre-processor (fails with clang++).

Also clang++ doesn't take .asm files as input, unless the -xc++ option is given.

This should get sorted out and clang++ should be run as pre-processor when building with clang(++).

Assignee
Assign to
Time tracking