refactor(kernel): move standard and hott kernel instantiations to library
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ab929d7201
commit
e445515f2b
10 changed files with 5 additions and 12 deletions
|
@ -226,10 +226,6 @@ add_subdirectory(kernel)
|
||||||
set(LEAN_LIBS ${LEAN_LIBS} kernel)
|
set(LEAN_LIBS ${LEAN_LIBS} kernel)
|
||||||
add_subdirectory(kernel/inductive)
|
add_subdirectory(kernel/inductive)
|
||||||
set(LEAN_LIBS ${LEAN_LIBS} inductive)
|
set(LEAN_LIBS ${LEAN_LIBS} inductive)
|
||||||
add_subdirectory(kernel/standard)
|
|
||||||
set(LEAN_LIBS ${LEAN_LIBS} standard_kernel)
|
|
||||||
add_subdirectory(kernel/hott)
|
|
||||||
set(LEAN_LIBS ${LEAN_LIBS} hott_kernel)
|
|
||||||
add_subdirectory(library)
|
add_subdirectory(library)
|
||||||
set(LEAN_LIBS ${LEAN_LIBS} library)
|
set(LEAN_LIBS ${LEAN_LIBS} library)
|
||||||
# add_subdirectory(library/rewriter)
|
# add_subdirectory(library/rewriter)
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
add_library(hott_kernel hott.cpp)
|
|
||||||
target_link_libraries(hott_kernel ${LEAN_LIBS})
|
|
|
@ -1,2 +0,0 @@
|
||||||
add_library(standard_kernel standard.cpp)
|
|
||||||
target_link_libraries(standard_kernel ${LEAN_LIBS})
|
|
|
@ -4,6 +4,7 @@ add_library(library deep_copy.cpp expr_lt.cpp io_state.cpp occurs.cpp
|
||||||
normalize.cpp shared_environment.cpp module.cpp coercion.cpp
|
normalize.cpp shared_environment.cpp module.cpp coercion.cpp
|
||||||
private.cpp placeholder.cpp aliases.cpp level_names.cpp
|
private.cpp placeholder.cpp aliases.cpp level_names.cpp
|
||||||
update_declaration.cpp choice.cpp scoped_ext.cpp locals.cpp
|
update_declaration.cpp choice.cpp scoped_ext.cpp locals.cpp
|
||||||
|
standard_kernel.cpp hott_kernel.cpp
|
||||||
unifier.cpp unifier_plugin.cpp
|
unifier.cpp unifier_plugin.cpp
|
||||||
explicit.cpp num.cpp string.cpp)
|
explicit.cpp num.cpp string.cpp)
|
||||||
# hop_match.cpp)
|
# hop_match.cpp)
|
||||||
|
|
|
@ -22,8 +22,8 @@ Author: Leonardo de Moura
|
||||||
#include "kernel/type_checker.h"
|
#include "kernel/type_checker.h"
|
||||||
#include "kernel/replace_fn.h"
|
#include "kernel/replace_fn.h"
|
||||||
#include "kernel/inductive/inductive.h"
|
#include "kernel/inductive/inductive.h"
|
||||||
#include "kernel/standard/standard.h"
|
#include "library/standard_kernel.h"
|
||||||
#include "kernel/hott/hott.h"
|
#include "library/hott_kernel.h"
|
||||||
#include "library/occurs.h"
|
#include "library/occurs.h"
|
||||||
#include "library/io_state_stream.h"
|
#include "library/io_state_stream.h"
|
||||||
#include "library/expr_lt.h"
|
#include "library/expr_lt.h"
|
||||||
|
|
|
@ -20,8 +20,8 @@ Author: Leonardo de Moura
|
||||||
#include "kernel/environment.h"
|
#include "kernel/environment.h"
|
||||||
#include "kernel/kernel_exception.h"
|
#include "kernel/kernel_exception.h"
|
||||||
#include "kernel/formatter.h"
|
#include "kernel/formatter.h"
|
||||||
#include "kernel/standard/standard.h"
|
#include "library/standard_kernel.h"
|
||||||
#include "kernel/hott/hott.h"
|
#include "library/hott_kernel.h"
|
||||||
#include "library/module.h"
|
#include "library/module.h"
|
||||||
#include "library/io_state_stream.h"
|
#include "library/io_state_stream.h"
|
||||||
#include "library/error_handling/error_handling.h"
|
#include "library/error_handling/error_handling.h"
|
||||||
|
|
Loading…
Reference in a new issue