diff --git a/toolchain/toolchain-external/ext-toolchain-wrapper.c b/toolchain/toolchain-external/ext-toolchain-wrapper.c index e2d01dcd5b..b3b02d8e7c 100644 --- a/toolchain/toolchain-external/ext-toolchain-wrapper.c +++ b/toolchain/toolchain-external/ext-toolchain-wrapper.c @@ -177,11 +177,12 @@ int main(int argc, char **argv) #if defined(BR_ARCH) || \ defined(BR_CPU) - /* Add our -march/cpu/abi flags, but only if none are - * already specified on the commandline + /* Add our -march/cpu flags, but only if none of + * -march/mtune/mcpu are already specified on the commandline */ for (i = 1; i < argc; i++) { if (!strncmp(argv[i], "-march=", strlen("-march=")) || + !strncmp(argv[i], "-mtune=", strlen("-mtune=")) || !strncmp(argv[i], "-mcpu=", strlen("-mcpu=" ))) break; }