Skip to content

Commit

Permalink
[GR-45628] Add support for detecting icx.
Browse files Browse the repository at this point in the history
PullRequest: graal/17603
  • Loading branch information
pejovica committed Apr 26, 2024
2 parents 7c52bc5 + 8a99277 commit 9f374b2
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -37,6 +37,7 @@
import java.util.Optional;
import java.util.Scanner;
import java.util.function.Consumer;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import org.graalvm.nativeimage.ImageSingletons;
Expand Down Expand Up @@ -237,6 +238,14 @@ protected CompilerInfo createCompilerInfo(Path compilerPath, Scanner scanner) {
return new CompilerInfo(compilerPath, "intel", "Intel(R) C++ Compiler", "icc", major, minor0, minor1, "x86_64");
}

if (scanner.findInLine(Pattern.quote("Intel(R) oneAPI DPC++/C++ Compiler ")) != null) {
scanner.useDelimiter("[. ]");
int major = scanner.nextInt();
int minor0 = scanner.nextInt();
int minor1 = scanner.nextInt();
return new CompilerInfo(compilerPath, "intel", "Intel(R) oneAPI DPC++/C++ Compiler", "icx", major, minor0, minor1, "x86_64");
}

if (scanner.findInLine("clang version ") != null) {
scanner.useDelimiter("[. -]");
int major = scanner.nextInt();
Expand Down

0 comments on commit 9f374b2

Please sign in to comment.