Fix tix-build variables when using sysroot natively.

This commit is contained in:
Jonas 'Sortie' Termansen 2022-04-15 13:11:36 +02:00
parent 5eb34b4a00
commit 4b376c7f16
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2014, 2015, 2016, 2020 Jonas 'Sortie' Termansen.
* Copyright (c) 2013, 2014, 2015, 2016, 2020, 2022 Jonas 'Sortie' Termansen.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@ -361,10 +361,8 @@ static void SetNeedVariableCrossTool(struct metainfo* minfo,
const char* variable,
const char* value)
{
if ( strcmp(minfo->build, minfo->host) == 0 )
{
if ( !minfo->cross )
SetNeedVariableBuildTool(minfo, variable, value);
}
else
{
char* newvalue = print_string("%s-%s", minfo->host, value);