File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ else()
152152endif ()
153153set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${warning_flags} ${TORCH_CXX_FLAGS} " )
154154
155- # Ensure that torchaudio is torch ABI stable.
155+ # Ensure that torchaudio is torch ABI stable with torch 2.10 onwards
156156set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTORCH_TARGET_VERSION=0x020a000000000000" )
157157
158158find_program (CCACHE_PROGRAM ccache)
Original file line number Diff line number Diff line change 2424// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2525// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626
27- // It is safe to temporarily disable TORCH_TARGET_VERSION for pybind11
27+ // Stuff in third_party/ is considered non-ABI-stable
28+ // (https://github.com/pytorch/pytorch/issues/169893), but
29+ // it is safe to temporarily disable TORCH_TARGET_VERSION for pybind11
2830// as it is a header-only library.
2931#ifdef TORCH_TARGET_VERSION
3032#define SAVE_TORCH_TARGET_VERSION TORCH_TARGET_VERSION
Original file line number Diff line number Diff line change 11#include < libtorchaudio/utils.h>
22
3- // It is safe to temporarily disable TORCH_TARGET_VERSION for pybind11
3+ // Stuff in third_party/ is considered non-ABI-stable
4+ // (https://github.com/pytorch/pytorch/issues/169893), but
5+ // it is safe to temporarily disable TORCH_TARGET_VERSION for pybind11
46// as it is a header-only library.
57#ifdef TORCH_TARGET_VERSION
68#define SAVE_TORCH_TARGET_VERSION TORCH_TARGET_VERSION
You can’t perform that action at this time.
0 commit comments