Skip to content

[compiler-rt][fuzzer] windows build unbreak proposal. #83538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Mar 1, 2024

shuffling the order of its includes.

@llvmbot
Copy link
Member

llvmbot commented Mar 1, 2024

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: David CARLIER (devnexen)

Changes

shuffling the order of its includes.


Full diff: https://github.com/llvm/llvm-project/pull/83538.diff

1 Files Affected:

  • (modified) compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp (+4-2)
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
index 13f9a67a2f0fe3..31947dd120bac0 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
@@ -18,12 +18,14 @@
 #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>
+#include <libloaderapi.h>
+#include <stringapiset.h>
+// clang-format on
 
 // This must be included after windows.h.
 #include <psapi.h>

@devnexen
Copy link
Member Author

devnexen commented Mar 1, 2024

cc @glandium.

#include <sys/types.h>
// clang-format off
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain here with comment, why this is needed.

shuffling the order of its includes.
@devnexen devnexen force-pushed the fuzzer_win_build_fix branch from 1a4c7ad to c258569 Compare March 1, 2024 09:01
@devnexen devnexen merged commit 062d78e into llvm:main Mar 1, 2024
devnexen added a commit to devnexen/llvm-project that referenced this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants