FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cli/tests/BuildToolArgsTests.cpp at main · vixcpp/cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
vixcpp
/
cli
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
10
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cli
/
tests
/
BuildToolArgsTests.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (26 loc) · 1.35 KB
Breadcrumbs
cli
/
tests
/
BuildToolArgsTests.cpp
Copy path
File metadata and controls
33 lines (26 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#
include
<
vix/cli/cmake/Toolchain.hpp
>
#
include
<
vix/cli/process/Process.hpp
>
#
include
<
vix/cli/util/Args.hpp
>
#
include
<
cassert
>
#
include
<
type_traits
>
int
main
()
{
namespace
process
=
vix::cli::process;
namespace
util
=
vix::cli::util;
static_assert
(std::is_same_v<process::LinkerMode, vix::engine::LinkerMode>);
static_assert
(std::is_same_v<process::LauncherMode, vix::engine::LauncherMode>);
assert
(
util::parse_linker_mode
(
"
auto
"
) == process::LinkerMode::Auto);
assert
(
util::parse_linker_mode
(
"
default
"
) == process::LinkerMode::Default);
assert
(
util::parse_linker_mode
(
"
mold
"
) == process::LinkerMode::Mold);
assert
(
util::parse_linker_mode
(
"
lld
"
) == process::LinkerMode::Lld);
assert
(
util::parse_linker_mode
(
"
AUTO
"
) == process::LinkerMode::Auto);
assert
(!
util::parse_linker_mode
(
"
gold
"
).
has_value
());
assert
(
util::parse_launcher_mode
(
"
auto
"
) == process::LauncherMode::Auto);
assert
(
util::parse_launcher_mode
(
"
none
"
) == process::LauncherMode::None);
assert
(
util::parse_launcher_mode
(
"
sccache
"
) == process::LauncherMode::Sccache);
assert
(
util::parse_launcher_mode
(
"
ccache
"
) == process::LauncherMode::Ccache);
assert
(
util::parse_launcher_mode
(
"
CCACHE
"
) == process::LauncherMode::Ccache);
assert
(!
util::parse_launcher_mode
(
"
distcc
"
).
has_value
());
assert
(
vix::cli::build::infer_processor_from_triple
(
"
arm-linux-gnueabihf
"
) ==
"
arm
"
);
return
0
;
}
Back
|
FazBrowse Home
|
New Git URL