Skip to content

Commit f9f90fd

Browse files
committed
[GR-64834] Specify the optimization level in all Makefiles
PullRequest: truffleruby/4525
2 parents 6519182 + 8d7f323 commit f9f90fd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

mx.truffleruby/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
"org.truffleruby.signal", # for the generated JNI header file
217217
],
218218
"use_jdk_headers": True, # the generated JNI header includes jni.h
219-
"cflags": ["-g", "-Wall", "-Werror", "-pthread"],
219+
"cflags": ["-g", "-O3", "-Wall", "-Werror", "-pthread"],
220220
"ldflags": ["-pthread"],
221221
},
222222

@@ -245,7 +245,7 @@
245245
"org.prism", # for the generated JNI header file
246246
],
247247
"use_jdk_headers": True, # the generated JNI header includes jni.h
248-
"cflags": ["-g", "-Wall", "-Werror", "-pthread", "-I<path:org.prism.libprism>/include"],
248+
"cflags": ["-g", "-O3", "-Wall", "-Werror", "-pthread", "-I<path:org.prism.libprism>/include"],
249249
"ldflags": ["-pthread"],
250250
"ldlibs": ["<path:org.prism.libprism>/build/libprism.a"],
251251
"description": "JNI bindings for YARP"

src/main/c/cext-trampoline/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ endif
1010
# Similar values as in RbConfig
1111
ifeq ($(OS),Darwin)
1212
CC := clang
13-
CFLAGS := -fdeclspec -Wall -Werror -fPIC -std=c99 -g
13+
CFLAGS := -fdeclspec -Wall -Werror -fPIC -std=c99 -g -O3
1414
else
1515
CC := gcc
16-
CFLAGS := -Wall -Werror -fPIC -std=c99 -g
16+
CFLAGS := -Wall -Werror -fPIC -std=c99 -g -O3
1717
endif
1818

1919
LDFLAGS :=

src/main/c/spawn-helper/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Q$(MX_VERBOSE) = @
22

33
CC := cc
4-
CFLAGS := -Wall -Werror -std=c99
4+
CFLAGS := -Wall -Werror -std=c99 -O3
55
LDFLAGS :=
66

77
spawn-helper: spawn-helper.c

src/main/c/truffleposix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SOEXT := so
88
endif
99

1010
CC := cc
11-
CFLAGS := -Wall -Werror -fPIC -std=c99 -g
11+
CFLAGS := -Wall -Werror -fPIC -std=c99 -g -O3
1212
LDFLAGS :=
1313

1414
ifeq ($(OS),Linux)

0 commit comments

Comments
 (0)