Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

fpreview-breaking-changes

Lets a user tell the compiler that they are willing to give up backward compatibility guarantees and lets the compiler enable new backward breaking changes that will appear in the next major release.

Syntax

Linux:

-fpreview-breaking-changes

Windows:

-fpreview-breaking-changes

Arguments

None

Default

OFF

The compiler follows default heuristics for backward compatibility.

Description

This option lets a user tell the compiler that they are willing to give up backward compatibility guarantees and lets the compiler enable new backward breaking changes that will appear in the next major release.

The breaking changes specified will be the default in the next major compiler release. So, this option lets you prepare for that release should you want to do so.

When this option is specified, it sets the macro __INTEL_PREVIEW_BREAKING_CHANGES.

When this option is used along with option -fsycl, the driver will link against an alternate form of libsycl, which is libsycl-preview.

NOTE:

To decide whether you want to choose to use the latest changes made by developers, see the Release Notes, which will show what is actually enabled by option -fpreview-breaking-release in each release.

IDE Equivalent

None

Alternate Options

None

Examples

The following shows examples of using this option:

> icpx -fpreview-breaking-changes -fsycl a.cpp -o a.out
> icx -fpreview-breaking-changes a.cpp -o a.out
> icpx -fpreview-breaking-changes -fiopenmp -fopenmp-targets=spir64 test.cpp