Skip to content

Commit

Permalink
feat: add common C flags
Browse files Browse the repository at this point in the history
  • Loading branch information
JPHutchins committed Nov 1, 2023
1 parent 0fb0b6a commit 21c773e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions ic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
include_guard(GLOBAL)

include(${CMAKE_CURRENT_LIST_DIR}/src/ic_bundle.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/src/ic_c_flags.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/src/ic_c_warnings.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/src/ic_project.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/src/ic_set_cmake_options.cmake)
Expand Down
14 changes: 14 additions & 0 deletions src/ic_c_flags.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) 2023 Intercreate, Inc.
# SPDX-License-Identifier: Apache-2.0
#
# Authors: J.P. Hutchins <[email protected]>

include_guard(GLOBAL)


# Common C flags
set(IC_C_FLAGS
-fno-common
-fstack-usage
-fmacro-prefix-map=${CMAKE_SOURCE_DIR}=.
)

0 comments on commit 21c773e

Please sign in to comment.