From: Kamil Rytarowski Date: Sun, 14 Feb 2016 14:17:15 +0000 (+0100) Subject: Fix build issue on NetBSD: Remove unneeded -nostdinc++ flag X-Git-Tag: submit/tizen/20210909.063632~11030^2~11414^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8622a547428e93081ab9989b523d1b39424e2f12;p=platform%2Fupstream%2Fdotnet%2Fruntime.git 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) dotnet/coreclr#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 dotnet/coreclr#125 by @jkotas Commit migrated from https://github.com/dotnet/coreclr/commit/47939a53d37033ea482e37222a06c71cceb030f0 --- diff --git a/src/coreclr/src/CMakeLists.txt b/src/coreclr/src/CMakeLists.txt index 243c7d3..4ae4a7c 100644 --- a/src/coreclr/src/CMakeLists.txt +++ b/src/coreclr/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)