diff --git a/openjdk-17.spec b/openjdk-17.spec index 868a5498178db0b14bf669b49426414078811868..1c374ac035cae742b320f81f9b0c47df4eac5e41 100644 --- a/openjdk-17.spec +++ b/openjdk-17.spec @@ -1374,6 +1374,9 @@ bash ../configure \ %ifnarch loongarch64 --with-vendor-version-string="%{vendor_version_string}" \ --with-vendor-name="openEuler Community" \ +%endif +%if "%toolchain" == "clang" + --with-toolchain-type=clang \ %endif --with-vendor-url="https://openeuler.org/" \ --with-vendor-bug-url="%{bug_url}" \