From aa1ba65aaaad4863ac4f8c06168e1ccfd54af436 Mon Sep 17 00:00:00 2001 From: akoeplinger Date: Thu, 11 Mar 2021 14:45:37 +0000 Subject: [PATCH] Don't include mono-dtrace.h when generating offsets offsets-tool can run before mono-dtrace.h is generated which leads to a compiler error about the file missing. This happened with the mac arm64 sdks build where we didn't disable dtrace like we do for iOS. It was racy since it depends on whether we already built the target mono before we're building the cross compiler mono. --- src/mono/mono/utils/dtrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/utils/dtrace.h b/src/mono/mono/utils/dtrace.h index d6b92c2cc0c72..883d1affa6188 100644 --- a/src/mono/mono/utils/dtrace.h +++ b/src/mono/mono/utils/dtrace.h @@ -10,7 +10,7 @@ #ifndef __UTILS_DTRACE_H__ #define __UTILS_DTRACE_H__ -#ifdef ENABLE_DTRACE +#if defined(ENABLE_DTRACE) && !defined(MONO_GENERATING_OFFSETS) #include