chore: reintroduce lean.cpp in separate commit so Git doesn't freak out

This commit is contained in:
Sebastian Ullrich 2021-09-16 11:31:41 +02:00 committed by Leonardo de Moura
parent b3bb2bac97
commit 130eac1b77

16
src/shell/lean.cpp Normal file
View file

@ -0,0 +1,16 @@
/*
Copyright (c) 2021 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
*/
// The actual main function is in `util/shell.cpp` and compiled into `libleanshared` to avoid issues with cross-lib C++.
// It will eventually be replaced by Lean code anyway.
// We put `main` in this separate file included only in `lean` so linking against `libleanshared` does not accidentally use it.
extern "C" int lean_main(int argc, char ** argv);
int main(int argc, char ** argv) {
return lean_main(argc, argv);
}