diff options
| author | Hans Wennborg <hans@hanshq.net> | 2016-06-27 18:03:45 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2016-06-27 18:03:45 +0000 |
| commit | 8065c5187508bca7de4711b627891f5ef5968e48 (patch) | |
| tree | 5a7a9ac771d640561a8d43c633066e9af101c24e /openmp/runtime/cmake | |
| parent | c6ada53be5ba03b8cb764abb4a7a0777ddcf60ad (diff) | |
| download | bcm5719-llvm-8065c5187508bca7de4711b627891f5ef5968e48.tar.gz bcm5719-llvm-8065c5187508bca7de4711b627891f5ef5968e48.zip | |
Fix the Windows build after r273599
That patch made all LLVM projects build with -DUNICODE. However, this doesn't
work for the OpenMP runtime.
But just overriding the flag with -UUNICODE breaks compiling ittnotify_static.c,
which for some reason needs to be compiled with -DUNICIODE. Note that compiling
ittnotify.h with -DUNICODE does not work though.
This seems like a mess. This commit fixes it for now, but it would be great
if someone who works on the OpenMP runtime could fix it properly.
llvm-svn: 273898
Diffstat (limited to 'openmp/runtime/cmake')
| -rw-r--r-- | openmp/runtime/cmake/LibompDefinitions.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/cmake/LibompDefinitions.cmake b/openmp/runtime/cmake/LibompDefinitions.cmake index c4cfbb94141..c3e3427a61d 100644 --- a/openmp/runtime/cmake/LibompDefinitions.cmake +++ b/openmp/runtime/cmake/LibompDefinitions.cmake @@ -21,6 +21,8 @@ function(libomp_get_definitions_flags cppflags) libomp_append(cppflags_local "-D _USRDLL") libomp_append(cppflags_local "-D _ITERATOR_DEBUG_LEVEL=0" IF_TRUE DEBUG_BUILD) libomp_append(cppflags_local "-D _DEBUG" IF_TRUE DEBUG_BUILD) + libomp_append(cppflags_local "-UUNICODE") + libomp_append(cppflags_local "-U_UNICODE") else() libomp_append(cppflags_local "-D _GNU_SOURCE") libomp_append(cppflags_local "-D _REENTRANT") |

