Skip to content

Commit

Permalink
export flags variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jwt27 committed Dec 30, 2023
1 parent 8dce76c commit d11f5b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ fi

export CFLAGS_FOR_TARGET=${CFLAGS_FOR_TARGET-"-O2 -g -ffunction-sections -fdata-sections"}
export CXXFLAGS_FOR_TARGET=${CXXFLAGS_FOR_TARGET-"-O2 -g -ffunction-sections -fdata-sections"}
export CFLAGS CXXFLAGS LDFLAGS

# check if cp understands --preserve (for MacOS)
if cp --preserve=mode,timestamps script/hello.c ./hello.c > /dev/null 2>&1; then
Expand Down

0 comments on commit d11f5b3

Please sign in to comment.