Skip to content

Commit 9a6b009

Browse files
committed
chore: disable force inlining in fuzzed builds
1 parent 118c85f commit 9a6b009

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

include/Ark/Utils/Platform.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
# define ARK_OS_LINUX
1818
#endif
1919

20-
#if defined(__GNUC__) || defined(__clang__)
21-
# define ARK_ALWAYS_INLINE __attribute__((always_inline))
22-
#elif defined(_MSC_VER) && !defined(__clang__)
23-
# define ARK_ALWAYS_INLINE __forceinline
20+
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21+
# if defined(__GNUC__) || defined(__clang__)
22+
# define ARK_ALWAYS_INLINE __attribute__((always_inline))
23+
# elif defined(_MSC_VER) && !defined(__clang__)
24+
# define ARK_ALWAYS_INLINE __forceinline
25+
# endif
2426
#else
2527
# define ARK_ALWAYS_INLINE
2628
#endif

0 commit comments

Comments
 (0)