-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
use $(PRET) tools install #813
Conversation
Please update the include path for compilation with agbcc, to use the pret headers instead of the devkitPro headers. |
ifneq ($(OS),Windows_NT) | ||
UNAME := $(shell uname -s) | ||
ifeq ($(UNAME),Darwin) | ||
HOSTCC := /usr/bin/clang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Just no.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh, yes. the gcc
command is ambiguous asf on macOS. we should stick to the system compiler unless otherwise specified
@@ -75,49 +102,33 @@ endif | |||
|
|||
CPPFLAGS := -iquote include -Wno-trigraphs -DMODERN=$(MODERN) | |||
ifeq ($(MODERN),0) | |||
CPPFLAGS += -I tools/agbcc/include -I tools/agbcc | |||
CPPFLAGS += -I $(PRET)/include -I $(PRET) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add -nostdinc -undef
here
# -*- coding: utf-8 -*- | ||
## Convenience script for installing all the tools at once | ||
|
||
REPO='https://pkg.caveoforig.in/fhtk/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be better to have the repo point back to pret on github, or to some host maintained by pret keyholders.
_sudo=''; | ||
fi | ||
|
||
_cwd="${PWD}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use pushd
and popd
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks i forgot about those
Also use
clang
on macOS, becausegcc
can be really wonky with homebrew sometimes.The main feature is the migration of tools out of the local directory they’re installed in and into a folder
/opt/pret/
. This makes it easy to move the tools around or use different versions for diagnostics. It also allows people to download precompiled binaries of the tools, which I have made available on the Cave of Origin for Linux and macOS using thegrups
tool.I’m open to seeing the tools moved to the pret GitHub organisation, and this is how
agbcc
is already handled, but for now they exist under the Fanhacker’s Toolkit because it’s an org I have control over. I have tested this with a clean repo usingmake -j$(nproc) && make compare
and get an OK, using the tools downloaded from the Cave using theinstall-all.sh
convenience script provided by grups. Let me know how it handles for you.