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

Various build improvements #22

Merged
merged 5 commits into from
Jan 20, 2019
Merged

Various build improvements #22

merged 5 commits into from
Jan 20, 2019

Conversation

AgentOak
Copy link
Contributor

@AgentOak AgentOak commented Jan 20, 2019

Please look at individual commits for an explanation.

Even though in #6 it was pretty much decided to move to C99, I decided to keep C89 compatibility for now since it was not hard to fix.

Note that the size_t commit has not been tested very well.

Consult pkg-config to find glfw3. On my distribution, the correct option is
just -lglfw. I'm not sure about Darwin here, so I didn't touch it.

Make the viewer compile on both GCC and Clang by removing Clang-only
options like -Weverything and replacing them with more common ones.
Note that conversion warnings have been disabled; they can be re-enabled
with -Wconversion. trackball.c triggers several of them, but they don't seem
like a problem.

viewer.o depends on trackball.h, update the Makefile accordingly.

The pragmas to ignore -Weverything have been removed, as this option is no
longer used.

main was missing a return statement.
Since acutest.h is C99, we never build tinyobj_loader_c.h with -ansi
(or any warning flags). Create a new goal to build tinyobj_loader_c.h
with -ansi and a strict set of warnings.
@syoyo syoyo merged commit 5ecb89a into syoyo:master Jan 20, 2019
@syoyo
Copy link
Owner

syoyo commented Jan 20, 2019

Awesome! merged

@AgentOak AgentOak deleted the misc branch January 20, 2019 17:14
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.

2 participants