pmt: fix build issues with NDK
This commit is contained in:
2
CMakeLists.txt
Normal file → Executable file
2
CMakeLists.txt
Normal file → Executable file
@@ -20,7 +20,7 @@ project(pmt VERSION 1.0.0)
|
|||||||
|
|
||||||
# Set compiler flags
|
# Set compiler flags
|
||||||
add_compile_options(-Wall -Werror)
|
add_compile_options(-Wall -Werror)
|
||||||
if(${CMAKE_BUILD_TYPE} STREQUAL Debug)
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||||
add_compile_options(-gdwarf-5 -fsanitize=address -fstack-protector)
|
add_compile_options(-gdwarf-5 -fsanitize=address -fstack-protector)
|
||||||
add_link_options(-fsanitize=address)
|
add_link_options(-fsanitize=address)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
0
cmake/generate_headers.cmake
Normal file → Executable file
0
cmake/generate_headers.cmake
Normal file → Executable file
0
include/CLI/CLI11.hpp
Normal file → Executable file
0
include/CLI/CLI11.hpp
Normal file → Executable file
0
include/CLI/LICENSE
Normal file → Executable file
0
include/CLI/LICENSE
Normal file → Executable file
0
include/PartitionManager/lib.hpp
Normal file → Executable file
0
include/PartitionManager/lib.hpp
Normal file → Executable file
0
include/buildInfo.hpp.in
Normal file → Executable file
0
include/buildInfo.hpp.in
Normal file → Executable file
0
include/picosha2.h
Normal file → Executable file
0
include/picosha2.h
Normal file → Executable file
0
src/FunctionManager.cpp
Normal file → Executable file
0
src/FunctionManager.cpp
Normal file → Executable file
0
src/Lib.cpp
Normal file → Executable file
0
src/Lib.cpp
Normal file → Executable file
0
src/Main.cpp
Normal file → Executable file
0
src/Main.cpp
Normal file → Executable file
0
src/functions/functions.hpp
Normal file → Executable file
0
src/functions/functions.hpp
Normal file → Executable file
0
srclib/CMakeLists.txt
Normal file → Executable file
0
srclib/CMakeLists.txt
Normal file → Executable file
0
srclib/libhelper/CMakeLists.txt
Normal file → Executable file
0
srclib/libhelper/CMakeLists.txt
Normal file → Executable file
0
srclib/libhelper/include/libhelper/lib.hpp
Normal file → Executable file
0
srclib/libhelper/include/libhelper/lib.hpp
Normal file → Executable file
0
srclib/libhelper/src/Checkers.cpp
Normal file → Executable file
0
srclib/libhelper/src/Checkers.cpp
Normal file → Executable file
3
srclib/libhelper/src/Classes.cpp
Normal file → Executable file
3
srclib/libhelper/src/Classes.cpp
Normal file → Executable file
@@ -21,12 +21,13 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include <libhelper/lib.hpp>
|
#include <libhelper/lib.hpp>
|
||||||
|
|
||||||
static void __create_log_file(const char* file)
|
static void __create_log_file(const char* file)
|
||||||
{
|
{
|
||||||
remove(file);
|
remove(file);
|
||||||
int fd = open(file, O_WRONLY | O_TRUNC, DEFAULT_EXTENDED_FILE_PERMS);
|
int fd = open(file, O_WRONLY | O_CREAT, DEFAULT_EXTENDED_FILE_PERMS);
|
||||||
if (fd != -1) close(fd);
|
if (fd != -1) close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
0
srclib/libhelper/src/FileUtil.cpp
Normal file → Executable file
0
srclib/libhelper/src/FileUtil.cpp
Normal file → Executable file
0
srclib/libhelper/src/Sha256.cpp
Normal file → Executable file
0
srclib/libhelper/src/Sha256.cpp
Normal file → Executable file
0
srclib/libhelper/src/Utilities.cpp
Normal file → Executable file
0
srclib/libhelper/src/Utilities.cpp
Normal file → Executable file
0
srclib/libhelper/tests/test.cpp
Normal file → Executable file
0
srclib/libhelper/tests/test.cpp
Normal file → Executable file
0
srclib/libhelper/tests/test.sh
Normal file → Executable file
0
srclib/libhelper/tests/test.sh
Normal file → Executable file
0
srclib/libpartition_map/CMakeLists.txt
Normal file → Executable file
0
srclib/libpartition_map/CMakeLists.txt
Normal file → Executable file
0
srclib/libpartition_map/include/libpartition_map/lib.hpp
Normal file → Executable file
0
srclib/libpartition_map/include/libpartition_map/lib.hpp
Normal file → Executable file
0
srclib/libpartition_map/src/Getters.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/Getters.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/PartitionMap.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/PartitionMap.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/Type.cpp
Normal file → Executable file
0
srclib/libpartition_map/src/Type.cpp
Normal file → Executable file
0
srclib/libpartition_map/tests/test.cpp
Normal file → Executable file
0
srclib/libpartition_map/tests/test.cpp
Normal file → Executable file
0
tests/test.cpp
Normal file → Executable file
0
tests/test.cpp
Normal file → Executable file
Reference in New Issue
Block a user