Skip to content

Commit

Permalink
Don't include mono-dtrace.h when generating offsets (#49482)
Browse files Browse the repository at this point in the history
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.

Co-authored-by: akoeplinger <akoeplinger@users.noreply.github.com>
  • Loading branch information
monojenkins and akoeplinger authored Mar 12, 2021
1 parent 1353e38 commit bcd07c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/utils/dtrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef __UTILS_DTRACE_H__
#define __UTILS_DTRACE_H__

#ifdef ENABLE_DTRACE
#if defined(ENABLE_DTRACE) && !defined(MONO_GENERATING_OFFSETS)

#include <mono/utils/mono-dtrace.h>

Expand Down

0 comments on commit bcd07c5

Please sign in to comment.