Skip to content

Commit

Permalink
remove O0 optimization for building tests on new compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Dec 15, 2023
1 parent 5f4a641 commit b19249f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/hammer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(XSIZE 1)
set(YSIZE 1)

set(CMAKE_BUILD_TYPE Debug)
SET(CMAKE_CXX_FLAGS_DEBUG " ${CMAKE_CXX_FLAGS_DEBUG} -O0 -Wall -Werror -Wextra")
SET(CMAKE_CXX_FLAGS_DEBUG " ${CMAKE_CXX_FLAGS_DEBUG} -Wall -Werror -Wextra")

add_definitions(-DXSIZE=${XSIZE})
add_definitions(-DYSIZE=${YSIZE})
Expand Down
2 changes: 1 addition & 1 deletion test/symver/retX_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "sym_macro.h"
SYMVER_ATTRIBUTE(retX_new, retX @ @GOTCHA_2)
int retX_new(int x) { return x; }
int retX_new(int x) { return x; }

0 comments on commit b19249f

Please sign in to comment.