Fix the issue with the notImplemented helper function
This commit is contained in:
parent
b66e92fb1f
commit
1ad61adb5a
|
@ -16,13 +16,8 @@
|
|||
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
message(STATUS ">> ${LIBSERENE_INCLUDE_DIR}")
|
||||
include_directories(${LIBSERENE_INCLUDE_DIR})
|
||||
|
||||
|
||||
|
||||
|
||||
add_subdirectory(lib)
|
||||
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ else()
|
|||
target_compile_features(core PUBLIC cxx_std_17)
|
||||
endif()
|
||||
|
||||
#target_compile_options(core PUBLIC ${CMAKE_C_FLAGS} -emit-llvm)
|
||||
# We need this directory, and users of our library will need it too
|
||||
target_include_directories(core PUBLIC "$<BUILD_INTERFACE:${INCLUDE_DIR}>")
|
||||
target_include_directories(core PUBLIC "$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>")
|
||||
|
|
|
@ -473,7 +473,9 @@ llvm::Error Halley::loadModule(const char *nsName, const char *file) {
|
|||
// TODO: [error] Remove this function when we implemented
|
||||
// the error subsystem
|
||||
llvm::Error NotImplemented(llvm::StringRef s) {
|
||||
return llvm::make_error<llvm::StringError>("Not Implemented: " + s);
|
||||
return llvm::make_error<llvm::StringError>(
|
||||
std::make_error_code(std::errc::executable_format_error),
|
||||
"Not Implemented: " + s);
|
||||
};
|
||||
// /TODO
|
||||
|
||||
|
|
Loading…
Reference in New Issue