[Openmp-commits] [openmp] r248494 - Fix stats build problem.
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 24 07:47:51 PDT 2015
Author: jlpeyton
Date: Thu Sep 24 09:47:51 2015
New Revision: 248494
URL: http://llvm.org/viewvc/llvm-project?rev=248494&view=rev
Log:
Fix stats build problem.
This change removes the KMP_STATS_ENABLED macro inside kmp_stats.cpp since it
is only compiled anyways when LIBOMP_STATS=on. Also, include kmp_config.h in
kmp_stats.h to ensure KMP_STATS_ENABLED is defined.
Modified:
openmp/trunk/runtime/src/kmp_stats.cpp
openmp/trunk/runtime/src/kmp_stats.h
Modified: openmp/trunk/runtime/src/kmp_stats.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_stats.cpp?rev=248494&r1=248493&r2=248494&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_stats.cpp (original)
+++ openmp/trunk/runtime/src/kmp_stats.cpp Thu Sep 24 09:47:51 2015
@@ -12,9 +12,6 @@
//
//===----------------------------------------------------------------------===//
-
-#if KMP_STATS_ENABLED
-
#include "kmp.h"
#include "kmp_str.h"
#include "kmp_lock.h"
@@ -610,4 +607,3 @@ void __kmp_stats_init(void)
} // extern "C"
-#endif // KMP_STATS_ENABLED
Modified: openmp/trunk/runtime/src/kmp_stats.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_stats.h?rev=248494&r1=248493&r2=248494&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_stats.h (original)
+++ openmp/trunk/runtime/src/kmp_stats.h Thu Sep 24 09:47:51 2015
@@ -15,6 +15,7 @@
//
//===----------------------------------------------------------------------===//
+#include "kmp_config.h"
#if KMP_STATS_ENABLED
/*
More information about the Openmp-commits
mailing list