Skip to content

Commit 8b5a194

Browse files
authored
[mk] Pass -fdiagnostics-absolute-paths to clang. (#23740)
This way clang will show the full paths to files when emitting errors and warnings, which makes it much easier to c&p the path to open it in an editor.
1 parent 8a94e89 commit 8b5a194

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

mk/rules.mk

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@ macos_DEFINES=-DMONOMAC
2323
# We can probably remove this flag once we require developers to use Xcode 14.
2424
# Ref: https://github.com/dotnet/macios/issues/16223
2525
OBJC_CFLAGS=-ObjC++ -std=c++14 -fno-exceptions -fno-objc-msgsend-selector-stubs -fobjc-abi-version=2 -fobjc-legacy-dispatch
26-
CFLAGS= -Wall -fms-extensions -Werror -Wconversion -Wdeprecated -Wuninitialized -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -g -I.
26+
CFLAGS=\
27+
-Wall \
28+
-fms-extensions \
29+
-Werror \
30+
-Wconversion \
31+
-Wdeprecated \
32+
-Wuninitialized \
33+
-fstack-protector-strong \
34+
-Wformat \
35+
-Wformat-security \
36+
-Werror=format-security \
37+
-fdiagnostics-absolute-paths \
38+
-g \
39+
-I.
2740
SWIFTFLAGS=-g -emit-library
2841

2942
SWIFT_TOOLCHAIN_iossimulator=iphonesimulator

0 commit comments

Comments
 (0)