Skip to content

Commit

Permalink
CMake: remove C/C++ flags override for static executable
Browse files Browse the repository at this point in the history
They were introduced in ziglang#3467 and
5b51f41 , and become obsolete since
C++-based compiler was removed: all C or C++ sources built by CMake
are just intermediate steps in bootstrapping.

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
  • Loading branch information
BratishkaErik authored and SammyJames committed Aug 7, 2024
1 parent c881749 commit c8e9ea7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ else()
list(APPEND ZIG_CMAKE_PREFIX_PATH "${ZIG_CMAKE_PREFIX_PATH_STRING}")
endif()

set(CMAKE_USER_MAKE_RULES_OVERRIDE
${CMAKE_CURRENT_SOURCE_DIR}/cmake/c_flag_overrides.cmake)
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxx_flag_overrides.cmake)

project(zig C CXX)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})

Expand Down
13 changes: 0 additions & 13 deletions cmake/c_flag_overrides.cmake

This file was deleted.

13 changes: 0 additions & 13 deletions cmake/cxx_flag_overrides.cmake

This file was deleted.

0 comments on commit c8e9ea7

Please sign in to comment.