forked from NUDT-compiler/nudt-compiler-cpp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
319 B
11 lines
319 B
#!/bin/bash
|
|
mkdir -p build/generated/antlr4
|
|
java -jar third_party/antlr-4.13.2-complete.jar \
|
|
-Dlanguage=Cpp \
|
|
-visitor -no-listener \
|
|
-Xexact-output-dir \
|
|
-o build/generated/antlr4 \
|
|
src/antlr4/SysY.g4
|
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCOMPILER_PARSE_ONLY=ON
|
|
cmake --build build -j "$(nproc)"
|