Skip to content

Commit

Permalink
Use -no-pie for triad and playground examples.
Browse files Browse the repository at this point in the history
The reason for the commit is to work with the libraries in the docker image,
which requires a -no-pie option.

Change-Id: I178a803cc901c79695c90d2af64de2a7b1ac9d56
  • Loading branch information
yaoyuannnn committed Jun 15, 2020
1 parent f91d54c commit f553bde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake-scripts/buildTracerBitcode.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function(build_tracer_bitcode TEST_NAME f_SRC WORKLOAD)

set(OPT_FLAGS "-disable-inlining" "-S" "-load=${FULLTRACE_SO}" "-fulltrace")
set(LLC_FLAGS "-O0" "-disable-fp-elim" "-filetype=asm")
set(FINAL_CXX_FLAGS "-O0" "-fno-inline" "-static")
set(FINAL_CXX_FLAGS "-O0" "-fno-inline" "-no-pie")

# Add ZLIB location.
get_filename_component(ZLIB_LIB_DIR ${ZLIB_LIBRARIES} DIRECTORY)
Expand Down
2 changes: 1 addition & 1 deletion playground/Makefile.tracer
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ full.s: full.llvm
llc -O0 -disable-fp-elim -filetype=asm -o $@ $<

$(EXEC)-instrumented: full.s
$(CXX) -static -O0 -fno-inline -o $@ $< -lm -lz -pthread
$(CXX) -no-pie -O0 -fno-inline -o $@ $< -lm -lz -pthread

%-opt.llvm: %.$(SUFFIX) labelmap
@$(eval CC1_COMMAND=$(shell clang -static -g -O1 -S -fno-slp-vectorize \
Expand Down

0 comments on commit f553bde

Please sign in to comment.