Skip to content

Commit

Permalink
Prioritize build_dir for generated headers (#47783)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0feaf5c)
  • Loading branch information
vchuravy authored and KristofferC committed Dec 8, 2022
1 parent 930314e commit 01ae8b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#define JULIA_H

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

// Version information
#include "julia_version.h"
#include <julia_version.h> // Generated file

JL_DLLEXPORT extern int jl_ver_major(void);
JL_DLLEXPORT extern int jl_ver_minor(void);
Expand Down
4 changes: 3 additions & 1 deletion src/julia_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,9 @@ JL_DLLEXPORT uint16_t julia__truncdfhf2(double param) JL_NOTSAFEPOINT;
#endif

#ifdef USE_DTRACE
#include "uprobes.h.gen"
// Generated file, needs to be searched in include paths so that the builddir
// retains priority
#include <uprobes.h.gen>

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

0 comments on commit 01ae8b7

Please sign in to comment.