Skip to content

Commit 45a997d

Browse files
committed
chore: relocate -O2 to cflags var
1 parent 2a53c12 commit 45a997d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
- name: Setting CFLAGS (arm)
6262
set_fact:
63-
cflags: "-moutline-atomics -mtune=native -march=native -mcpu=native -fsigned-char"
63+
cflags: "-moutline-atomics -mtune=native -march=native -mcpu=native -fsigned-char -O2"
6464
when: platform == "arm64"
6565

6666
- name: Setting CFLAGS (x86)
@@ -70,7 +70,7 @@
7070

7171
- name: Postgres - configure
7272
shell:
73-
cmd: CFLAGS='{{ cflags }}' LLVM_CONFIG=/usr/bin/llvm-config-11 CLANG=/usr/bin/clang-11 ./configure --with-llvm --with-openssl --with-systemd --with-uuid=e2fs --with-libxml --with-icu --with-lz4 --exec-prefix=/usr/lib/postgresql --datarootdir=/var/lib/postgresql -O2
73+
cmd: CFLAGS='{{ cflags }}' LLVM_CONFIG=/usr/bin/llvm-config-11 CLANG=/usr/bin/clang-11 ./configure --with-llvm --with-openssl --with-systemd --with-uuid=e2fs --with-libxml --with-icu --with-lz4 --exec-prefix=/usr/lib/postgresql --datarootdir=/var/lib/postgresql
7474
chdir: /tmp/postgresql-{{ postgresql_release }}
7575

7676
- name: Postgres - build

0 commit comments

Comments
 (0)