Browse Source

Fixed a bug in the build system where linker flags were interpreted as compiler flags, because all tests used the Link command instead of LinkerFlag.

David Piuva 1 year ago
parent
commit
8da10a7030
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/tools/builder/code/Machine.cpp

+ 2 - 2
Source/tools/builder/code/Machine.cpp

@@ -204,8 +204,8 @@ static void interpretLine(Machine &target, const List<String> &tokens, int64_t s
 				validateSettings(target, U"in target after adding a linker flag\n");
 				validateSettings(target, U"in target after adding a linker flag\n");
 			} else if (string_caseInsensitiveMatch(first, U"linkerflag")) {
 			} else if (string_caseInsensitiveMatch(first, U"linkerflag")) {
 				// For linker flags that are not used to
 				// For linker flags that are not used to
-				target.compilerFlags.push(STRING_EXPR(startTokenIndex + 1, endTokenIndex));
-				validateSettings(target, U"in target after adding a compiler flag\n");
+				target.linkerFlags.push(STRING_EXPR(startTokenIndex + 1, endTokenIndex));
+				validateSettings(target, U"in target after adding a linker flag\n");
 			} else if (string_caseInsensitiveMatch(first, U"compilerflag")) {
 			} else if (string_caseInsensitiveMatch(first, U"compilerflag")) {
 				target.compilerFlags.push(STRING_EXPR(startTokenIndex + 1, endTokenIndex));
 				target.compilerFlags.push(STRING_EXPR(startTokenIndex + 1, endTokenIndex));
 				validateSettings(target, U"in target after adding a compiler flag\n");
 				validateSettings(target, U"in target after adding a compiler flag\n");