Skip to content

Commit

Permalink
chore: kernel API build
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Feb 9, 2025
1 parent dc49657 commit 9897c3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ add_subdirectory(kernel)
include(add_mos_library)
add_subdirectory(libs)

add_subdirectory(userspace)
if (__MOS_HAS_NO_COMPILER)
message(WARNING "Skipping userspace build because __MOS_HAS_NO_COMPILER is set.")
else()
add_subdirectory(userspace)
endif()
add_subdirectory(tools)

# include custom configuration
Expand Down
2 changes: 1 addition & 1 deletion kernel/include/private/mos/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class PtrResult

T *get() const
{
return const_cast<T *>(value);
return value;
}

bool isErr() const
Expand Down

0 comments on commit 9897c3e

Please sign in to comment.