aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorLayne Gustafson <lgustaf1@binghamton.edu>2020-01-07 10:36:06 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-19 20:53:19 -0500
commite4ecdefa9a668d34c830816eea242b110c30c475 (patch)
tree9dcae1840100dc1366c16ce8ac55aefe1dfff44f /src/main.cpp
parent51372200d36ee0f78d32a5f7c7f8d4faf6dc9a35 (diff)
downloadzig-e4ecdefa9a668d34c830816eea242b110c30c475.tar.gz
zig-e4ecdefa9a668d34c830816eea242b110c30c475.zip
Rename subfeatures -> dependencies
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f061b13414..32efb9f020 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -135,7 +135,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) {
"Targets Options:\n"
" --list-features [arch] list available features for the given architecture\n"
" --list-cpus [arch] list available cpus for the given architecture\n"
- " --show-subfeatures list subfeatures for each entry from --list-features or --list-cpus\n"
+ " --show-dependencies list feature dependencies for each entry from --list-{features,cpus}\n"
, arg0);
return return_code;
}
@@ -540,7 +540,7 @@ int main(int argc, char **argv) {
const char *targets_list_features_arch = nullptr;
const char *targets_list_cpus_arch = nullptr;
- bool targets_show_subfeatures = false;
+ bool targets_show_dependencies = false;
ZigList<const char *> llvm_argv = {0};
llvm_argv.append("zig (LLVM option parsing)");
@@ -792,8 +792,8 @@ int main(int argc, char **argv) {
cur_pkg = cur_pkg->parent;
} else if (strcmp(arg, "-ffunction-sections") == 0) {
function_sections = true;
- } else if (strcmp(arg, "--show-subfeatures") == 0) {
- targets_show_subfeatures = true;
+ } else if (strcmp(arg, "--show-dependencies") == 0) {
+ targets_show_dependencies = true;
} else if (i + 1 >= argc) {
fprintf(stderr, "Expected another argument after %s\n", arg);
return print_error_usage(arg0);
@@ -1448,13 +1448,13 @@ int main(int argc, char **argv) {
stage2_list_features_for_arch(
targets_list_features_arch,
strlen(targets_list_features_arch),
- targets_show_subfeatures);
+ targets_show_dependencies);
return 0;
} else if (targets_list_cpus_arch != nullptr) {
stage2_list_cpus_for_arch(
targets_list_cpus_arch,
strlen(targets_list_cpus_arch),
- targets_show_subfeatures);
+ targets_show_dependencies);
return 0;
} else {
return print_target_list(stdout);