We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec8223e commit 840016aCopy full SHA for 840016a
native/abnativefunctions.cpp
@@ -417,8 +417,14 @@ static int set_arch_variables(const char *arch = nullptr) {
417
}
418
419
// set ARCH variables
420
- auto this_arch = arch == nullptr ? std::string(ab_get_current_architecture())
421
- : std::string(arch);
+ std::string this_arch{};
+ if (find_variable("ARCH")) {
422
+ this_arch = find_variable("ARCH")->value;
423
+ } else if (arch) {
424
+ this_arch = arch;
425
+ } else {
426
+ this_arch = ab_get_current_architecture();
427
+ }
428
// ARCH=$(abdetectarch)
429
bind_global_variable("ARCH", const_cast<char *>(this_arch.c_str()), ASS_NOEVAL);
430
// ABHOST=ARCH
0 commit comments