Fix the issue with the notImplemented helper function

This commit is contained in:
Sameer Rahmani 2022-07-02 22:43:25 +01:00
parent b66e92fb1f
commit 1ad61adb5a
3 changed files with 4 additions and 6 deletions

View File

@ -16,13 +16,8 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
message(STATUS ">> ${LIBSERENE_INCLUDE_DIR}")
include_directories(${LIBSERENE_INCLUDE_DIR})
add_subdirectory(lib)

View File

@ -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}>")

View File

@ -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