diff options
author | Kamil Rytarowski <n54@gmx.com> | 2016-02-14 15:17:15 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2016-02-14 15:17:15 +0100 |
commit | 47939a53d37033ea482e37222a06c71cceb030f0 (patch) | |
tree | ec997dc577581257186dfbffd2cfc2fdb37d5387 /src/CMakeLists.txt | |
parent | a1c870d555a73618a8ed9c2d26e523eb7e71ab36 (diff) | |
download | coreclr-47939a53d37033ea482e37222a06c71cceb030f0.tar.gz coreclr-47939a53d37033ea482e37222a06c71cceb030f0.tar.bz2 coreclr-47939a53d37033ea482e37222a06c71cceb030f0.zip |
Fix build issue on NetBSD: Remove unneeded -nostdinc++ flag
This flag isn't recognized by clang on NetBSD:
clang-3.9: warning: argument unused during compilation: '-nostdinc++'
$ pkg_info |grep -E 'lldb|llvm|clang'
llvm-3.9.0nb20160213 Low Level Virtual Machine compiler infrastructure
clang-3.9.0nb20160213 C language family frontend for LLVM
lldb-3.9.0nb20160213 next generation, high-performance debugger
$ uname -a
NetBSD chieftec 7.99.26 NetBSD 7.99.26 (GENERIC) #0: Wed Feb 10 21:58:18 UTC 2016
root@chieftec:/tmp/netbsd-tmp/sys/arch/amd64/compile/GENERIC amd64
This flag was disabled also for Darwin in #125 by @jkotas
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 243c7d34fa..4ae4a7c808 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -88,11 +88,6 @@ if(CLR_CMAKE_PLATFORM_UNIX) # This prevents inclusion of standard C compiler headers add_compile_options(-nostdinc) - if(NOT CLR_CMAKE_PLATFORM_DARWIN) - # This prevents inclusion of standard C++ compiler headers - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdinc++") - endif(NOT CLR_CMAKE_PLATFORM_DARWIN) - set (NATIVE_RESOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/nativeresources) include_directories(${NATIVE_RESOURCE_DIR}) set (RC_TO_CPP ${NATIVE_RESOURCE_DIR}/rctocpp.awk) |