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

Circle compiler support #1767

Closed
kassane opened this issue Oct 24, 2021 · 1 comment
Closed

Circle compiler support #1767

kassane opened this issue Oct 24, 2021 · 1 comment

Comments

@kassane
Copy link

kassane commented Oct 24, 2021

Circle compiler is a new C++20 compiler. It's written from scratch and designed for easy extension.
Allowing you to explore even more of the compile time. Although it is Linux only.

More info: https://github.com/seanbaxter/circle

Examples

C language:

#include<stdio.h>

int main(void) {
   printf("Hello printf at runtime\n");
   @meta printf("Hello printf at compile time\n");

    return 0;
}

Output:

$> ./circle sanity.c
Hello printf at comple time
$> ./sanity
Hello printf at runtime

C++ language:

#include<iostream>

int main() {
   std::cout << "Hello cout at runtime\n";
   @meta std::cout << "Hello cout at compile time\n";

    return 0;
}

Output:

$> ./circle sanity.cxx
Hello cout at compile time
$> ./sanity
Hello cout at runtime
@waruqi
Copy link
Member

waruqi commented Oct 25, 2021

done

xmake f --toolchain=circle
xmake 

@waruqi waruqi closed this as completed Oct 25, 2021
@waruqi waruqi added this to the v2.5.9 milestone Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants