Skip to content

Commit

Permalink
Merge pull request #6702 from dsouzai/gcc11BuildFixes
Browse files Browse the repository at this point in the history
Fix build breaks with gcc 11.3.1
  • Loading branch information
babsingh authored Sep 13, 2022
2 parents 99ca691 + d62849e commit 7b747ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (c) 2016, 2021 IBM Corp. and others
Copyright (c) 2016, 2022 IBM Corp. and others
This program and the accompanying materials are made available under
the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -145,7 +145,7 @@ source tree. For more detailed instructions please read [BuildingWithCMake.md](d
cd build

# Generate the build system using cmake
cmake ..
cmake -Wdev -C ../cmake/caches/Travis.cmake ..

# Build (you can optionally compile in parallel by adding -j<N> to the make command)
make
Expand Down
5 changes: 4 additions & 1 deletion omrtrace/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2017, 2020 IBM Corp. and others
# Copyright (c) 2017, 2022 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -36,6 +36,9 @@ omr_add_library(omrtrace STATIC
# to implement variable length structs
if (OMR_STRNCPY_FORTIFY_OPTIONS)
target_compile_options(omrtrace PRIVATE ${OMR_STRNCPY_FORTIFY_OPTIONS})
if (OMR_OS_LINUX)
target_compile_options(omrtrace PRIVATE -O3)
endif()
endif()

target_link_libraries(omrtrace
Expand Down

0 comments on commit 7b747ec

Please sign in to comment.