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

Revert "Portability fixes" #395

Merged
merged 1 commit into from Jan 5, 2017
Merged

Revert "Portability fixes" #395

merged 1 commit into from Jan 5, 2017

Conversation

jhert0
Copy link
Member

@jhert0 jhert0 commented Jan 5, 2017

This reverts commit f346907.

Reverted because some of the changes in f346907 caused toxcore to not compile on OSX.


This change is Reviewable

This reverts commit f346907.
@iphydf
Copy link
Member

iphydf commented Jan 5, 2017

:lgtm_strong:


Reviewed 27 of 27 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@iphydf iphydf merged commit 59e2a84 into TokTok:master Jan 5, 2017
@iphydf iphydf added this to the v0.1.3 milestone Jan 5, 2017
# Set standard version for compiler.
add_cflag("-std=gnu99")
add_cxxflag("-std=c++98")

Copy link
Member

Choose a reason for hiding this comment

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

this looks incorrect to me. You only define the C standard if warnings are enabled?

Copy link
Member

Choose a reason for hiding this comment

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

Yes. By default, gcc uses gnu89, which is sufficient for us at the moment (soon it won't be). @Zer0-One will hopefully make the original PR again which reverts this revert.

Copy link

Choose a reason for hiding this comment

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

Just curious, why are cxxflags set in a C-only library?

Copy link
Member

Choose a reason for hiding this comment

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

We also compile the code as C++ to make sure it's C++ compatible. Reasons:

  • Additional C++-only tooling becomes available (static analysers).
  • A few checks performed by C++ compilers (enum compatibility, void pointer casts) are useful for us.

@nurupo
Copy link
Member

nurupo commented Jan 12, 2017

@endoffile78 Would be nice if the PR mention why the commit was reverted. If I remember correctly from the IRC discussions (which not everyone going over PRs follows closely), it's because that commit broke toxcore on OS X?

@Zer0-One
Copy link
Member

@nurupo correct

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.

None yet

6 participants