Skip to content

Commit

Permalink
Solved pgo lab
Browse files Browse the repository at this point in the history
  • Loading branch information
jpark37 committed Feb 8, 2025
1 parent 7c37ced commit e340451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions labs/misc/pgo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ include_directories(lua)
file(GLOB EXT_LAB_srcs lua/*.c)
file(GLOB EXT_VALIDATE_srcs lua/*.c)

#set(CMAKE_C_FLAGS "-fprofile-instr-generate ${CMAKE_C_FLAGS}")
set(CMAKE_C_FLAGS "-fprofile-instr-use=\"${CMAKE_CURRENT_SOURCE_DIR}/code.profdata\" ${CMAKE_C_FLAGS}")

set(VALIDATE_ARGS "${CMAKE_CURRENT_SOURCE_DIR}/reference_output.txt")

string(REGEX MATCH "^(.*)[\\/]labs[\\/].*$" repo "${CMAKE_CURRENT_SOURCE_DIR}")
Expand Down
Binary file added labs/misc/pgo/code.profdata
Binary file not shown.

0 comments on commit e340451

Please sign in to comment.