Skip to content

Commit ce31ac1

Browse files
author
Alexey Samsonov
committed
Revert r196490 and fix include paths in makefile-based build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@196492 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 508b24f commit ce31ac1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ $(call Set,Tmp.CFLAGS,$(strip \
249249

250250
$(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.s $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir
251251
$(Summary) " ASSEMBLE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$<"
252-
$(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c -o $$@ $$<
252+
$(Verb) $(Tmp.CC) $(COMMON_ASMFLAGS) $(Tmp.CFLAGS) -c -o $$@ $$<
253253
$(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.S $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir
254254
$(Summary) " ASSEMBLE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$<"
255-
$(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c -o $$@ $$<
255+
$(Verb) $(Tmp.CC) $(COMMON_ASMFLAGS) $(Tmp.CFLAGS) -c -o $$@ $$<
256256
$(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.c $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir
257257
$(Summary) " COMPILE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$<"
258258
$(Verb) $(Tmp.CC) $(COMMON_CFLAGS) $(Tmp.CFLAGS) -c -o $$@ $$<

lib/tsan/rtl/tsan_rtl_amd64.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../../sanitizer_common/sanitizer_asm.h"
1+
#include "sanitizer_common/sanitizer_asm.h"
22
.section .text
33

44
.hidden __tsan_trace_switch

make/config.mk

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ endif
4343

4444
###
4545
# Common compiler options
46-
COMMON_CXXFLAGS=-fno-exceptions -fPIC -funwind-tables -I${ProjSrcRoot}/lib -I${ProjSrcRoot}/include
47-
COMMON_CFLAGS=-fPIC
46+
COMMON_INCLUDES=-I${ProjSrcRoot}/lib -I${ProjSrcRoot}/include
47+
COMMON_CXXFLAGS=-fno-exceptions -fPIC -funwind-tables $(COMMON_INCLUDES)
48+
COMMON_CFLAGS=-fPIC $(COMMON_INCLUDES)
49+
COMMON_ASMFLAGS=$(COMMON_INCLUDES)

0 commit comments

Comments
 (0)