From e3141020374e229abacf68c88f0be3b9287f51c3 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 7 Oct 2025 13:02:37 +0100 Subject: [PATCH] build: fix VTune builds When trying to build with VTune support, I ran into couple of errors due to outdated paths in build configs. --- deps/v8/third_party/vtune/vtune-jit.h | 3 +-- src/api/environment.cc | 2 +- src/node.cc | 2 +- tools/v8_gypfiles/v8vtune.gyp | 6 +++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/deps/v8/third_party/vtune/vtune-jit.h b/deps/v8/third_party/vtune/vtune-jit.h index 70f1fe3547fdf3..a3c5a9616fe7c5 100644 --- a/deps/v8/third_party/vtune/vtune-jit.h +++ b/deps/v8/third_party/vtune/vtune-jit.h @@ -39,7 +39,7 @@ #ifndef VTUNE_VTUNE_JIT_H_ #define VTUNE_VTUNE_JIT_H_ -#include "third_party/ittapi/include/jitprofiling.h" +#include "../ittapi/include/jitprofiling.h" #define VTUNERUNNING (iJIT_IsProfilingActive() == iJIT_SAMPLING_ON) @@ -63,4 +63,3 @@ class VTUNEJITInterface { #endif // VTUNE_VTUNE_JIT_H_ - diff --git a/src/api/environment.cc b/src/api/environment.cc index f048806c66327e..b806e0e4af70d0 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -18,7 +18,7 @@ #include "node_wasm_web_api.h" #include "uv.h" #ifdef NODE_ENABLE_VTUNE_PROFILING -#include "../deps/v8/src/third_party/vtune/v8-vtune.h" +#include "../deps/v8/third_party/vtune/v8-vtune.h" #endif #if HAVE_INSPECTOR #include "inspector/worker_inspector.h" // ParentInspectorHandle diff --git a/src/node.cc b/src/node.cc index fed1417f5f4dee..72d6973723a637 100644 --- a/src/node.cc +++ b/src/node.cc @@ -73,7 +73,7 @@ #endif #ifdef NODE_ENABLE_VTUNE_PROFILING -#include "../deps/v8/src/third_party/vtune/v8-vtune.h" +#include "../deps/v8/third_party/vtune/v8-vtune.h" #endif #include "large_pages/node_large_page.h" diff --git a/tools/v8_gypfiles/v8vtune.gyp b/tools/v8_gypfiles/v8vtune.gyp index babe3d8b5d2dad..4b49bdb46d4abd 100644 --- a/tools/v8_gypfiles/v8vtune.gyp +++ b/tools/v8_gypfiles/v8vtune.gyp @@ -17,9 +17,9 @@ '<(V8_ROOT)/third_party/ittapi/src/ittnotify/ittnotify_types.h', '<(V8_ROOT)/third_party/ittapi/src/ittnotify/jitprofiling.c', '<(V8_ROOT)/third_party/ittapi/include/jitprofiling.h', - '<(V8_ROOT)/src/third_party/vtune/v8-vtune.h', - '<(V8_ROOT)/src/third_party/vtune/vtune-jit.cc', - '<(V8_ROOT)/src/third_party/vtune/vtune-jit.h', + '<(V8_ROOT)/third_party/vtune/v8-vtune.h', + '<(V8_ROOT)/third_party/vtune/vtune-jit.cc', + '<(V8_ROOT)/third_party/vtune/vtune-jit.h', ], 'include_dirs': [ '<(V8_ROOT)/third_party/ittapi/include',