From dfd0125ffd4f2afd0ad78dfac4c8d588b1b666db Mon Sep 17 00:00:00 2001
From: sunmin89 <sunmin@kubuds.cn>
Date: Wed, 3 Apr 2024 19:18:23 +0800
Subject: [PATCH] Add support for qmake clang

---
 wpa_supplicant/wpa_gui-qt4/wpa_gui.pro | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/wpa_supplicant/wpa_gui-qt4/wpa_gui.pro b/wpa_supplicant/wpa_gui-qt4/wpa_gui.pro
index 3fa734b..f8f9f71 100644
--- a/wpa_supplicant/wpa_gui-qt4/wpa_gui.pro
+++ b/wpa_supplicant/wpa_gui-qt4/wpa_gui.pro
@@ -3,6 +3,13 @@ LANGUAGE	= C++
 TRANSLATIONS	= lang/wpa_gui_de.ts
 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
 
+#Add support for clang
+QMAKE_CC = clang
+QMAKE_CXX = clang++
+QMAKE_LINK = clang++
+QMAKE_AR = llvm-ar
+QMAKE_STRIP = llvm-strip
+
 CONFIG	+= qt warn_on release
 
 DEFINES += CONFIG_CTRL_IFACE
-- 
2.27.0

