-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
gnat 11.1.0: new formula #77641
gnat 11.1.0: new formula #77641
Conversation
depends_on "binutils" | ||
end | ||
|
||
conflicts_with "gcc", because: "both install gcc" |
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.
Can we remove the files that conflict with gcc
, so that this doesn't conflict with gcc
? That's basically what libgccjit
does.
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.
GNAT invokes gcc
to compile ada source code so that is inevitable.
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.
Can it be persuaded to invoke gcc
from the gcc
formula? libgccjit
also invokes gcc
.
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.
If use gcc
from gcc
formula
% gnat make --GCC=gcc-11 hello.adb
gcc-11 -c hello.adb
gcc-11: error: hello.adb: Ada compiler not installed on this system
gnatmake: "hello.adb" compilation error
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.
specs.h
in gcc
formula doesn't include gcc/ada/gcc-interface/lang-specs.h
so it can't handle ada source file.
--libdir=#{lib}/gcc/#{version_suffix} | ||
--disable-nls | ||
--enable-checking=release | ||
--enable-languages=c,ada |
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.
Is enabling C necessary to build Ada?
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.
Ada depends on C
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.
Sure, but that doesn't mean I need to build a C compiler just to build an Ada compiler. Why can't I build an Ada compiler while still using my already existing C compiler?
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.
Ada part of GNAT
need use some gcc's C code.
|
This should be added to GCC itself, as it is not specific to Ada.
That's going to make it difficult to work with the main GCC formula. |
If keep
which means user need pass more arguments. |
Re-adding the |
Formula/gnat.rb
Outdated
pour_bottle? do | ||
on_macos do | ||
reason "The bottle needs the Xcode CLT to be installed." | ||
satisfy { MacOS::CLT.installed? } | ||
end | ||
end |
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.
@Rylan12 we have new syntax for this now right?
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.
Yes but we need to wait for a new tag for it to be used in Homebrew/core.
Once that's been made, it should be:
pour_bottle? do | |
on_macos do | |
reason "The bottle needs the Xcode CLT to be installed." | |
satisfy { MacOS::CLT.installed? } | |
end | |
end | |
pour_bottle? only_if: :clt_installed |
No need to wait for the new syntax, though. If desired this can be merged now and I'll update it to the new syntax when I do the rest of the formulae.
Use new |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?GNAT use
gcc
as it compilation driveradd
zstd
to support lto code compression