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

AGS 4: provide standalone builds of the new compiler #2328

Open
ericoporto opened this issue Feb 4, 2024 · 2 comments
Open

AGS 4: provide standalone builds of the new compiler #2328

ericoporto opened this issue Feb 4, 2024 · 2 comments
Labels

Comments

@ericoporto
Copy link
Member

The new compiler in ags4 is missing a command line front end. It's necessary to decide one of two approaches.

  • Use the existing frontend for the old compiler but use macro/template so it's used in building the new one
  • Write it's own frontend for the new compiler, use the same code as baseline but make it it's own thing

It needs it's own CMake script to build it too!

After this, it also needs to be added to the CI - so it can build and be tested in other platforms.

@ivan-mogilko
Copy link
Contributor

ivan-mogilko commented Feb 4, 2024

The two compiler libraries are using same interface, and similar set of options, so I think it's better to use existing frontend code to build both using either a compile-time or runtime switch.
If there are any incompatible new options then these should be simply ignored by the old compiler.

That is, build 2 programs using same "launcher" code but linking 2 different compiler libs, or build 1 program with both compiler libs linked and switch between them using a cmd arg.

Well, I guess having separate program is better, maybe call it agscc2.

@ivan-mogilko ivan-mogilko added this to the 4.0.0 (preliminary) milestone Feb 4, 2024
@ivan-mogilko ivan-mogilko added the ags 4 related to the ags4 development label Feb 4, 2024
@ericoporto
Copy link
Member Author

ericoporto commented May 5, 2024

I am looking into this

I am thinking there's quite a lot of stuff different that I need to pickout to some file and then use a different file depending on compiler...

But it would be super easy to make a new frontend from duplicating the code and later figure what the hell they have in common - which could then go into a compiler_frontend_lib of sorts.

@ivan-mogilko ivan-mogilko changed the title provide standalone builds of the new compiler in ags4 AGS 4: provide standalone builds of the new compiler May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants