Skip to content

Commit cb2b174

Browse files
authored
Stop -Wmacro-redefined for TORCH_API (#8392)
No longer seeing these warnings during local CMake build.
1 parent a01571f commit cb2b174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegen/macros.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
#pragma once
1010
// TODO(T157709949) remove this file
11-
#ifndef USE_ATEN_LIB
11+
#if !defined(USE_ATEN_LIB) && !defined(TORCH_API)
1212
#define TORCH_API
1313
#endif

0 commit comments

Comments
 (0)