Skip to content

Commit

Permalink
fix clang target
Browse files Browse the repository at this point in the history
  • Loading branch information
ailrst committed Jan 12, 2024
1 parent 3efb2e2 commit bb889eb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/test/make/clang.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CC=$(CLANG)
CFLAGS +=
include $(GIT_ROOT)/src/test/make/lift.mk
2 changes: 1 addition & 1 deletion src/test/make/clang_O2.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CC=$(CLANG)
CFLAGS += -target $(TARGET) -O2
CFLAGS += -O2
include $(GIT_ROOT)/src/test/make/lift.mk
2 changes: 1 addition & 1 deletion src/test/make/clang_no_plt_no_pic.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CC=$(CLANG)
CFLAGS += -target $(TARGET) -fno-plt -fno-pic
CFLAGS += -fno-plt -fno-pic
include $(GIT_ROOT)/src/test/make/lift.mk
2 changes: 1 addition & 1 deletion src/test/make/clang_pic.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CC=$(CLANG)
CFLAGS += -target $(TARGET) -fPIC
CFLAGS += -fPIC
include $(GIT_ROOT)/src/test/make/lift.mk
2 changes: 1 addition & 1 deletion src/test/make/lift-directories.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ NAME=$(notdir $(shell pwd))
GIT_ROOT?=$(realpath ../../../../)

GCC ?= aarch64-linux-gnu-gcc
CLANG ?= clang-15
CLANG ?= clang-15 -target $(TARGET)
CC ?= $(GCC)
#CFLAGS=-fno-pic -fno-plt
TARGET=aarch64-linux-gnu
Expand Down

0 comments on commit bb889eb

Please sign in to comment.