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

[REQUEST]: CMake v3.27 #5502

Closed
vicentebolea opened this issue Sep 21, 2023 · 8 comments · Fixed by #5815
Closed

[REQUEST]: CMake v3.27 #5502

vicentebolea opened this issue Sep 21, 2023 · 8 comments · Fixed by #5815
Labels
new-language request Request for something

Comments

@vicentebolea
Copy link
Contributor

Language name

CMAKE

Language version

CMAKE 3.27

Language homepage

https://cmake.org/

Compiler homepage

https://cmake.org/

Compiler version

3.27

Motivation

CMake language is heavily used in C/C++ projects by the cmake interpreter. Adding support in godbolt to cmake can be trully useful for the community.

To process a cmake language script in cmake use cmake -P script_path

@vicentebolea vicentebolea added new-language request Request for something labels Sep 21, 2023
@vicentebolea
Copy link
Contributor Author

Note that I would be happy to assist/make this change if needed

@partouf partouf changed the title [LANGUAGE REQUEST]: [REQUEST]: CMake v3.27 Sep 21, 2023
@partouf
Copy link
Contributor

partouf commented Sep 23, 2023

@vicentebolea
Copy link
Contributor Author

just involves changes this number https://github.com/compiler-explorer/infra/blob/main/bin/yaml/tools.yaml#L12

Thanks for the prompt response, to make it clear, What I am requesting is being able to interpret cmake scripts in GodBolt. Thanks

@partouf
Copy link
Contributor

partouf commented Sep 23, 2023

just involves changes this number https://github.com/compiler-explorer/infra/blob/main/bin/yaml/tools.yaml#L12

Thanks for the prompt response, to make it clear, What I am requesting is being able to interpret cmake scripts in GodBolt. Thanks

right, sorry, missed that, that's a different story, I'm not really sure that's possible

@vicentebolea
Copy link
Contributor Author

In principle it is simply calling cmake -P ./scriptfilehere, I am happy to assist with this

@vicentebolea
Copy link
Contributor Author

In principle it is simply calling cmake -P ./scriptfilehere, I am happy to assist with this

@partouf

@partouf
Copy link
Contributor

partouf commented Oct 16, 2023

In principle it is simply calling cmake -P ./scriptfilehere, I am happy to assist with this

@partouf

I understand, but CMake is already added as a special language and will probably mess some things up, so it will require some extra effort if it's possible to do.

@vicentebolea
Copy link
Contributor Author

In principle it is simply calling cmake -P ./scriptfilehere, I am happy to assist with this

@partouf

I understand, but CMake is already added as a special language and will probably mess some things up, so it will require some extra effort if it's possible to do.

Perhaps we can call this CMakeScript

mattgodbolt added a commit that referenced this issue Dec 5, 2023
Fixes #5502 

In this PR I make an early attempt to add the CMakeScript as a language
in compiler-explorer. I will be fantastic having this since CMake is one
of the most used build system. Having an cmake interpreter in the web
would probe truly useful for teams and individuals, it will be a
fantastic way to share snippets of cmakescript and show how they are
executed with different cmake versions.

Co-authored-by: Matt Godbolt <matt@godbolt.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-language request Request for something
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants