Lines Matching defs:architecture
27 " %s [-p] <architecture> [ <command> ... ]\n"
30 "architecture will be preferred, respectively used exclusively in case of\n"
31 "the primary architecture.\n"
53 is_primary_architecture(const char* architecture)
55 return strcmp(architecture, get_primary_architecture()) == 0;
60 get_bin_directories(const char* architecture, BStringList& _directories)
62 status_t error = BPathFinder::FindPaths(architecture,
65 fprintf(stderr, "Error: Failed to get bin directories for architecture "
66 "%s: %s\n", architecture, strerror(error));
73 compute_new_paths(const char* architecture, BStringList& _paths)
75 // get the primary architecture bin paths
81 if (!is_primary_architecture(architecture))
82 get_bin_directories(architecture, binDirectoriesToInsert);
94 // primary architecture. Also find the insertion index for the architecture
108 // path's architecture.
115 // a non-primary architecture path -- skip
126 // Insert the paths for the specified architecture, if any.
201 // The remaining arguments are the architecture and optionally the command
205 const char* architecture = optind < argc ? argv[optind++] : NULL;
213 // check the architecture
214 if (!architectures.HasString(architecture)) {
215 fprintf(stderr, "Error: Unsupported architecture \"%s\"\n",
216 architecture);
222 compute_new_paths(architecture, paths);