diff options
| author | Jon Palmisciano <jp@jonpalmisc.com> | 2023-02-12 18:39:57 -0500 |
|---|---|---|
| committer | Jon Palmisciano <jp@jonpalmisc.com> | 2023-02-12 18:39:57 -0500 |
| commit | 17daee849c666ffa5535c158754d53ab37bf763f (patch) | |
| tree | aa2c6bda60e9f7ae705905dd674249880f1f0e21 /python | |
| parent | 49591fd3e0cd37c8c829b792ead7182797f10e73 (diff) | |
Slightly clean up CMake output
Diffstat (limited to 'python')
| -rw-r--r-- | python/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | python/generator.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index ffc690b2..5068a585 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -29,7 +29,7 @@ if(BN_INTERNAL_BUILD) add_custom_target(generator_copy ALL BYPRODUCTS ${PROJECT_SOURCE_DIR}/_binaryninjacore.py ${PROJECT_SOURCE_DIR}/enums.py DEPENDS ${PYTHON_SOURCES} ${PROJECT_SOURCE_DIR}/../binaryninjacore.h $<TARGET_FILE:generator> - COMMAND ${CMAKE_COMMAND} -E echo "Copying Python Sources" + COMMENT "Copying API Python sources" COMMAND ${CMAKE_COMMAND} -E make_directory ${BN_RESOURCE_DIR}/python/binaryninja/ COMMAND ${CMAKE_COMMAND} -E env ASAN_OPTIONS=detect_leaks=0 $<TARGET_FILE:generator> ${PROJECT_SOURCE_DIR}/../binaryninjacore.h ${PROJECT_SOURCE_DIR}/_binaryninjacore.py ${PROJECT_SOURCE_DIR}/enums.py COMMAND ${CMAKE_COMMAND} -E copy ${PYTHON_SOURCES} ${BN_RESOURCE_DIR}/python/binaryninja/ diff --git a/python/generator.cpp b/python/generator.cpp index a26334e5..9f5e24eb 100644 --- a/python/generator.cpp +++ b/python/generator.cpp @@ -245,9 +245,10 @@ int main(int argc, char* argv[]) Settings::Instance()->Set("analysis.types.parserName", "ClangTypeParser"); bool ok = arch->GetStandalonePlatform()->ParseTypesFromSourceFile(argv[1], types, vars, funcs, errors); - fprintf(stderr, "Errors: %s\n", errors.c_str()); - if (!ok) + if (!ok) { + fprintf(stderr, "Errors: %s\n", errors.c_str()); return 1; + } FILE* out = fopen(argv[2], "w"); FILE* enums = fopen(argv[3], "w"); |
