Skip to content

[FEA]: Expose compiler detection macros #8247

@Jacobfaib

Description

@Jacobfaib

Is this a duplicate?

Area

libcu++

Is your feature request related to a problem? Please describe.

Any mature downstream project will at some point care about which compiler is currently being invoked. Usually, people end up rolling their own compiler detection macros with varying levels of success.

Describe the solution you'd like

Expose the _CCCL_COMPILER(x) macros publicly (sans underscore) to users in a cuda/compiler_detection (name subject to bike-shedding) header.

Effectively do #3237 but as a public interface.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions