Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DIVINE
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
paradise
mirror
DIVINE
Commits
a191b97b
There was an error fetching the commit references. Please try again later.
Commit
a191b97b
authored
5 years ago
by
Petr Rockai
Browse files
Options
Downloads
Patches
Plain Diff
cmake: Build DiOS per-architecture support code.
parent
95463b7c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dios/CMakeLists.txt
+4
-0
4 additions, 0 deletions
dios/CMakeLists.txt
dios/compile-flags.cmake
+15
-9
15 additions, 9 deletions
dios/compile-flags.cmake
with
19 additions
and
9 deletions
dios/CMakeLists.txt
+
4
−
0
View file @
a191b97b
...
...
@@ -17,6 +17,10 @@ file( GLOB H_RUNTIME LIST_DIRECTORIES false
file
(
GLOB SRC_dios sys/*.cpp vfs/*.cpp proxy/*.cpp
)
file
(
GLOB SRC_config config/*.cpp
)
file
(
GLOB SRC_dios_divm arch/divm/*.cpp arch/divm/*.c
)
file
(
GLOB SRC_dios_klee arch/klee/*.cpp arch/klee/*.c
)
file
(
GLOB SRC_dios_native arch/native/*.cpp arch/native/*.c
)
file
(
GLOB SRC_librst rst/*.cpp
)
file
(
GLOB SRC_libc libc/*/*.c
)
file
(
GLOB SRC_libc_cpp libc/*/*.cpp
)
...
...
This diff is collapsed.
Click to expand it.
dios/compile-flags.cmake
+
15
−
9
View file @
a191b97b
...
...
@@ -18,20 +18,26 @@ list( APPEND flags -isystem${divine_SOURCE_DIR}/ ) # for #includes starting with
list
(
APPEND flags -isystem
${
divine_SOURCE_DIR
}
/bricks
)
set
(
NOEXCEPT
"-fno-rtti;-fno-exceptions"
)
mkobjs
(
libc
"
${
flags
}
;-D_PDCLIB_BUILD"
)
mkobjs
(
libc_cpp
"
${
flags
}
;-D_PDCLIB_BUILD;
${
NOEXCEPT
}
;-std=c++1
z
;-I
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
mkobjs
(
libpthread
"
${
flags
}
;
${
NOEXCEPT
}
;-std=c++1
z
"
)
mkobjs
(
libc_cpp
"
${
flags
}
;-D_PDCLIB_BUILD;
${
NOEXCEPT
}
;-std=c++1
7
;-I
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
mkobjs
(
libpthread
"
${
flags
}
;
${
NOEXCEPT
}
;-std=c++1
7
"
)
mkobjs
(
libm
"
${
flags
}
"
)
list
(
APPEND flags -std=c++1z
)
mkobjs
(
libcxxabi
"
${
flags
}
;-DLIBCXXABI_USE_LLVM_UNWINDER"
)
mkobjs
(
libcxx
"
${
flags
}
;-D_LIBCPP_BUILDING_LIBRARY;-DLIBCXX_BUILDING_LIBCXXABI"
)
mkobjs
(
libcxxabi
"
${
flags
}
;-DLIBCXXABI_USE_LLVM_UNWINDER;-std=c++17"
)
mkobjs
(
libcxx
"
${
flags
}
;-D_LIBCPP_BUILDING_LIBRARY;-DLIBCXX_BUILDING_LIBCXXABI;-std=c++17"
)
list
(
APPEND flags -I
${
CMAKE_CURRENT_SOURCE_DIR
}
/fs -I
${
CMAKE_CURRENT_BINARY_DIR
}
-Wall -Wextra -Wold-style-cast -Werror
)
mkobjs
(
dios
"
${
flags
}
;-D__dios_kernel__;
${
NOEXCEPT
}
"
)
mkobjs
(
config
"
${
flags
}
;-D__dios_kernel__;
${
NOEXCEPT
}
"
)
mkobjs
(
librst
"
${
flags
}
;
${
NOEXCEPT
}
"
)
-Wall -Wextra -Wold-style-cast -Werror
)
mkobjs
(
dios
"
${
flags
}
;-D__dios_kernel__;
${
NOEXCEPT
}
;-std=c++17"
)
mkobjs
(
config
"
${
flags
}
;-D__dios_kernel__;
${
NOEXCEPT
}
;-std=c++17"
)
mkobjs
(
librst
"
${
flags
}
;
${
NOEXCEPT
}
;-std=c++17"
)
foreach
(
arch divm klee native
)
mkobjs
(
dios_
${
arch
}
"
${
flags
}
;
${
NOEXCEPT
}
"
)
mklib
(
dios_
${
arch
}
)
endforeach
()
mklib
(
libc libc_cpp
)
mklib
(
libm
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment