Skip to content

Commit 4685f6e

Browse files
committed
Add -Wno-deprecated warning for order-file temporarily
1 parent 1c6497e commit 4685f6e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

orderfile/app/src/main/cpp/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ target_link_libraries(orderfiledemo PRIVATE base::base log)
1818

1919
if(GENERATE_PROFILES)
2020
# Generating profiles requires any optimization flag aside from -O0.
21-
# The mapping file will not generate and the profile instrumentation does not work without an optimization flag.
22-
target_compile_options(orderfiledemo PRIVATE -forder-file-instrumentation -O1 -mllvm -orderfile-write-mapping=mapping.txt)
21+
# The mapping file will not generate and the profile instrumentation does not work without an optimization flag.
22+
# Temporarily pass "-Wno-deprecated" since the order-file flags will be updated in a future PR
23+
target_compile_options(orderfiledemo PRIVATE -forder-file-instrumentation -O1 -mllvm -orderfile-write-mapping=mapping.txt -Wno-deprecated)
2324
target_link_options(orderfiledemo PRIVATE -forder-file-instrumentation)
2425
target_compile_definitions(orderfiledemo PRIVATE GENERATE_PROFILES)
2526
elseif(USE_PROFILE)

0 commit comments

Comments
 (0)