Code Monkey home page Code Monkey logo

eggcc's Introduction

eggcc

Installation

  • Install rust
  • Clone the repo
  • Install the insta command for cargo
    cargo install cargo-insta
    
  • Install graphviz on your system. You'll need a dot executable in your path.

Installation- Mac

  • Install llvm 18 with brew install llvm@18
    • If you get an error with this step, try upgrading MacOS to at least Sonoma (14)
  • Add llvm to PATH in your .zshrc file: export PATH="/opt/homebrew/Cellar/llvm/18.1.5/bin/:$PATH"
  • Open a new terminal (sourceing alone may not work).
  • Run make runtime to install the bril llvm runtime. If this fails, try running cargo clean in runtime and trying again.
  • You may need to add LSystem to your path: export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
  • Run the tests with make and ensure things build and run without errors.

Installation- Linux

  • Install llvm 18. For Ubuntu users, we have a script for installation: ./install_ubuntu.sh
  • Run make runtime to install the bril llvm runtime.
  • Run the tests with make and ensure things build and run without errors.

How to add a test

  • Add a bril file under tests/.
  • Run cargo insta review to confirm the output for the new file.

How to run local nightly

  • Make sure you have the command hyperfine (install if not).
  • Run bash infra/localnightly.sh <bril file or directory>

To run the nightly server for an existing nightly, run cd nightly/output && python3 -m http.server.

eggcc's People

Contributors

oflatt avatar ajpal avatar alex-fischman avatar rtjoa avatar clyben avatar kirstenmg avatar yihozhang avatar ryan-berger avatar ezrosent avatar glenn-sun avatar egg-fnatic avatar wilcoxjay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.