Skip to content

Commit a716bd7

Browse files
dzagoruimasahir0y
authored andcommitted
kbuild: use -fmacro-prefix-map for .S sources
Follow-up to commit a73619a ("kbuild: use -fmacro-prefix-map to make __FILE__ a relative path"). Assembler sources also use __FILE__ macro so this flag should be also applied to those sources. Signed-off-by: Denys Zagorui <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 095fbca commit a716bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types)
946946
KBUILD_CFLAGS += $(call cc-option,-Werror=designated-init)
947947

948948
# change __FILE__ to the relative path from the srctree
949-
KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
949+
KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
950950

951951
# ensure -fcf-protection is disabled when using retpoline as it is
952952
# incompatible with -mindirect-branch=thunk-extern

0 commit comments

Comments
 (0)