Skip to content
Closed
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: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-attributes -Wno-deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes -Wno-deprecated-declarations")

# Match Soong's global native preprocessor constants.
add_compile_definitions(ANDROID NDEBUG)
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:-UDEBUG>)

# For off64_t
add_compile_definitions(_FILE_OFFSET_BITS=64 _LARGEFILE64_SOURCE)

Expand Down
1 change: 0 additions & 1 deletion vendor/libandroidfw.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ add_library(libandroidfw STATIC
)

target_compile_definitions(libandroidfw PUBLIC
NDEBUG
STATIC_ANDROIDFW_FOR_TOOLS
)

Expand Down