Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify configure.ac for faster autotools build. #1126

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Aug 25, 2018

  • Remove ability to disable logging.
  • Remove unused NCURSES_FOUND.
  • Remove checks for stdbool and existence of int types.
    These mostly exist, and if they don't, we'll just fail to compile.
  • Remove checks for various functions.

This change is Reviewable

@iphydf iphydf added this to the v0.2.x milestone Aug 25, 2018
@codecov
Copy link

codecov bot commented Aug 25, 2018

Codecov Report

Merging #1126 into master will increase coverage by <.1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1126     +/-   ##
========================================
+ Coverage    82.5%   82.6%   +<.1%     
========================================
  Files          82      81      -1     
  Lines       14478   14437     -41     
========================================
- Hits        11957   11931     -26     
+ Misses       2521    2506     -15
Impacted Files Coverage Δ
auto_tests/network_test.c 90.3% <0%> (-7.3%) ⬇️
toxcore/net_crypto.c 93.6% <0%> (-0.5%) ⬇️
toxcore/DHT.c 76.7% <0%> (-0.1%) ⬇️
toxcore/mono_time.c 92.8% <0%> (ø) ⬆️
auto_tests/reconnect_test.c
toxcore/Messenger.c 85.8% <0%> (ø) ⬆️
toxcore/onion_client.c 95% <0%> (+0.1%) ⬆️
toxav/msi.c 65.6% <0%> (+0.8%) ⬆️
toxcore/LAN_discovery.c 84.9% <0%> (+0.9%) ⬆️
toxav/toxav.c 69.1% <0%> (+0.9%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 730e4cf...36f0caa. Read the comment docs.

# Checks for library functions.
AC_FUNC_FORK
AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem these tests aren't used. But meanwhile it seems we should be testing (with AC_CHECK_FUNCS) for memset_s and explicit_bzero. CMakeLists checks for them, and crypto_core_mem.c uses the defines.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@iphydf
Copy link
Member Author

iphydf commented Aug 26, 2018

Done.

@iphydf
Copy link
Member Author

iphydf commented Aug 27, 2018

@zugz lgtm?

* Remove ability to disable logging.
* Remove unused `NCURSES_FOUND`.
* Remove checks for stdbool and existence of int types.
  These mostly exist, and if they don't, we'll just fail to compile.
* Remove checks for various functions.
* Add check for `explicit_bzero` and `memset_s`.
@iphydf iphydf merged commit 36f0caa into TokTok:master Aug 30, 2018
@iphydf iphydf deleted the simplify-autotools branch August 30, 2018 22:22
@robinlinden robinlinden modified the milestones: v0.2.x, v0.2.8 Oct 7, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants