Skip to content

Commit 01ae8b7

Browse files
vchuravyKristofferC
authored andcommitted
Prioritize build_dir for generated headers (#47783)
(cherry picked from commit 0feaf5c)
1 parent 930314e commit 01ae8b7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/julia.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
#define JULIA_H
55

66
#ifdef LIBRARY_EXPORTS
7-
#include "jl_internal_funcs.inc"
7+
// Generated file, needs to be searched in include paths so that the builddir
8+
// retains priority
9+
#include <jl_internal_funcs.inc>
810
#undef jl_setjmp
911
#undef jl_longjmp
1012
#undef jl_egal
@@ -2183,7 +2185,7 @@ JL_DLLEXPORT int jl_generating_output(void) JL_NOTSAFEPOINT;
21832185
#define JL_OPTIONS_USE_COMPILED_MODULES_NO 0
21842186

21852187
// Version information
2186-
#include "julia_version.h"
2188+
#include <julia_version.h> // Generated file
21872189

21882190
JL_DLLEXPORT extern int jl_ver_major(void);
21892191
JL_DLLEXPORT extern int jl_ver_minor(void);

src/julia_internal.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,9 @@ JL_DLLEXPORT uint16_t julia__truncdfhf2(double param) JL_NOTSAFEPOINT;
16471647
#endif
16481648

16491649
#ifdef USE_DTRACE
1650-
#include "uprobes.h.gen"
1650+
// Generated file, needs to be searched in include paths so that the builddir
1651+
// retains priority
1652+
#include <uprobes.h.gen>
16511653

16521654
// uprobes.h.gen on systems with DTrace, is auto-generated to include
16531655
// `JL_PROBE_{PROBE}` and `JL_PROBE_{PROBE}_ENABLED()` macros for every probe

0 commit comments

Comments
 (0)