Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build breaks with gcc 11.3.1 #6702

Merged
merged 2 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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