[Openmp-commits] [PATCH] D44019: Fix build of stubs library

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 2 08:28:22 PST 2018


AndreyChurbanov created this revision.
AndreyChurbanov added reviewers: tlwilmar, jlpeyton, hbae.
AndreyChurbanov added a project: OpenMP.
Herald added a subscriber: openmp-commits.

Re-order includes to fix the build of stubs library that can be used for serial compilation of OpenMP codes.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D44019

Files:
  runtime/src/kmp_stub.cpp


Index: runtime/src/kmp_stub.cpp
===================================================================
--- runtime/src/kmp_stub.cpp
+++ runtime/src/kmp_stub.cpp
@@ -15,9 +15,9 @@
 #include <limits.h>
 #include <stdlib.h>
 
+#include "omp.h" // omp_* declarations, must be included before "kmp.h"
 #include "kmp.h" // KMP_DEFAULT_STKSIZE
 #include "kmp_stub.h"
-#include "omp.h" // Function renamings.
 
 #if KMP_OS_WINDOWS
 #include <windows.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44019.136759.patch
Type: text/x-patch
Size: 442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180302/1b905ea5/attachment.bin>


More information about the Openmp-commits mailing list