Skip to content

Commit d3ad09c

Browse files
authored
Fix build with non-english locale (#1606)
1 parent b92627b commit d3ad09c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/compilers/GNU.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020-2024 Intel Corporation
1+
# Copyright (c) 2020-2025 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -48,7 +48,7 @@ endif()
4848
# information is written to either stdout or stderr. To not make any
4949
# assumptions, both are captured.
5050
execute_process(
51-
COMMAND ${CMAKE_COMMAND} -E env "LANG=C" ${CMAKE_CXX_COMPILER} -xc -c /dev/null -Wa,-v -o/dev/null
51+
COMMAND ${CMAKE_COMMAND} -E env "LC_ALL=C" "LANG=C" ${CMAKE_CXX_COMPILER} -xc -c /dev/null -Wa,-v -o/dev/null
5252
OUTPUT_VARIABLE ASSEMBLER_VERSION_LINE_OUT
5353
ERROR_VARIABLE ASSEMBLER_VERSION_LINE_ERR
5454
OUTPUT_STRIP_TRAILING_WHITESPACE

0 commit comments

Comments
 (0)