[Openmp-commits] [PATCH] D110120: [OpenMP][OMPD] Fix compile error when OMPD is not supported
Usman Nadeem via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Sep 20 18:06:05 PDT 2021
mnadeem created this revision.
mnadeem added reviewers: hbae, Vigneshbalu.
Herald added subscribers: guansong, yaxunl, mgorny.
mnadeem requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
I am getting compilation errors after https://reviews.llvm.org/D100182
Error:
In file included from .../openmp/libompd/src/TargetValue.cpp:13:
.../openmp/libompd/src/TargetValue.h:13:10: fatal error: 'omp-tools.h' file not found
#include "omp-tools.h"
Looks like the file `omp-tools.h` is guarded like this:
if(${LIBOMP_OMPT_SUPPORT})
configure_file(${LIBOMP_INC_DIR}/omp-tools.h.var omp-tools.h @ONLY)
endif()
Not familiar with the build system but here is an attempt to fix the issue.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110120
Files:
openmp/runtime/CMakeLists.txt
Index: openmp/runtime/CMakeLists.txt
===================================================================
--- openmp/runtime/CMakeLists.txt
+++ openmp/runtime/CMakeLists.txt
@@ -411,3 +411,4 @@
set(LIBOMP_INCLUDE_DIR ${LIBOMP_INCLUDE_DIR} PARENT_SCOPE)
# make these variables available for tools/libompd:
set(LIBOMP_SRC_DIR ${LIBOMP_SRC_DIR} PARENT_SCOPE)
+set(LIBOMP_OMPD_SUPPORT ${LIBOMP_OMPD_SUPPORT} PARENT_SCOPE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110120.373759.patch
Type: text/x-patch
Size: 420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210921/84298d3d/attachment.bin>
More information about the Openmp-commits
mailing list