[compiler-rt] 062d78e - [compiler-rt][fuzzer] windows build unbreak proposal. (#83538)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 01:13:15 PST 2024


Author: David CARLIER
Date: 2024-03-01T09:13:11Z
New Revision: 062d78ef58ac26e1c6f82201151428d0b89cca21

URL: https://github.com/llvm/llvm-project/commit/062d78ef58ac26e1c6f82201151428d0b89cca21
DIFF: https://github.com/llvm/llvm-project/commit/062d78ef58ac26e1c6f82201151428d0b89cca21.diff

LOG: [compiler-rt][fuzzer] windows build unbreak proposal. (#83538)

shuffling the order of its includes.

Added: 
    

Modified: 
    compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
index 13f9a67a2f0fe3..39ab9e241b5914 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
@@ -18,15 +18,18 @@
 #include <errno.h>
 #include <io.h>
 #include <iomanip>
-#include <libloaderapi.h>
 #include <signal.h>
 #include <stdio.h>
-#include <stringapiset.h>
 #include <sys/types.h>
+// clang-format off
 #include <windows.h>
-
-// This must be included after windows.h.
+// These must be included after windows.h.
+// archicture need to be set before including
+// libloaderapi
+#include <libloaderapi.h>
+#include <stringapiset.h>
 #include <psapi.h>
+// clang-format on
 
 namespace fuzzer {
 


        


More information about the llvm-commits mailing list