Skip to content

Commit

Permalink
[DO_NOT_MERGE] disable system header escape hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Sep 18, 2024
1 parent e3c2e2b commit 57af496
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions cmake/CCCLBuildCompilerTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ function(cccl_build_compiler_targets)
list(APPEND cuda_compile_definitions "-Xcudafe=--promote_warnings")
list(APPEND cuda_compile_definitions "-Wno-deprecated-gpu-targets")

# Ensure that we build our tests without treating ourself as system header
list(APPEND cxx_compile_definitions "_CCCL_NO_SYSTEM_HEADER")

if ("MSVC" STREQUAL "${CMAKE_CXX_COMPILER_ID}")
list(APPEND cuda_compile_options "--use-local-env")
list(APPEND cxx_compile_options "/bigobj")
Expand Down
1 change: 0 additions & 1 deletion libcudacxx/test/utils/libcudacxx/test/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ def configure_compile_flags(self):
# Configure extra flags
compile_flags_str = self.get_lit_conf('compile_flags', '')
self.cxx.compile_flags += shlex.split(compile_flags_str)
self.cxx.compile_flags += ['-D_CCCL_NO_SYSTEM_HEADER']
if self.is_windows:
# FIXME: Can we remove this?
self.cxx.compile_flags += ['-D_CRT_SECURE_NO_WARNINGS']
Expand Down
3 changes: 0 additions & 3 deletions thrust/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ function(thrust_add_test target_name_var test_name test_src thrust_target)
target_compile_definitions(${test_target} PRIVATE THRUST_TEST_DEVICE_SIDE)
endif()

# Ensure that we build our tests without treating ourself as system header
target_compile_definitions(${test_target} PRIVATE "_CCCL_NO_SYSTEM_HEADER")

thrust_fix_clang_nvcc_build_for(${test_target})

# Add to the active configuration's meta target
Expand Down

0 comments on commit 57af496

Please sign in to comment.