Skip to content

Commit

Permalink
cmake: Set GCC's min-pagesize to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
austinEng authored Oct 31, 2023
1 parent 09591ea commit 4a2903d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ function(common_compile_options TARGET)

-Wno-deprecated-builtins
-Wno-unknown-warning-option

# GCC 11 and above may generate a warning when dereferencing a constant
# address pointer whose address is below the value specified by the
# `min-pagesize` parameter (defaults to 0x1000). The `min-pagesize` parameter
# is set to 0 such that GCC never generates any warnings for the constant
# address pointers. For more details, refer to the GCC PR99578.
--param=min-pagesize=0
)

if (${DAWN_ENABLE_MSAN})
Expand Down

0 comments on commit 4a2903d

Please sign in to comment.