File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 158
158
'PATH' => "#{ install_dir } /embedded/bin:#{ Gitlab ::Util . get_env ( 'PATH' ) } " ,
159
159
'SKIP_STORAGE_VALIDATION' => 'true' ,
160
160
'SKIP_DATABASE_CONFIG_VALIDATION' => 'true' ,
161
- 'NODE_OPTIONS' => '--max_old_space_size=3584'
162
161
}
162
+ assets_compile_env [ 'NODE_OPTIONS' ] = '--max_old_space_size=3584' if OhaiHelper . is_32_bit?
163
+
163
164
assets_compile_env [ 'NO_SOURCEMAPS' ] = 'true' if Gitlab ::Util . get_env ( 'NO_SOURCEMAPS' )
164
165
command 'yarn install --pure-lockfile --production'
165
166
Original file line number Diff line number Diff line change @@ -180,6 +180,10 @@ def raspberry_pi?
180
180
os_platform == 'raspbian'
181
181
end
182
182
183
+ def is_32_bit?
184
+ `getconf LONG_BIT` . strip == "32"
185
+ end
186
+
183
187
def gcc_target
184
188
ohai [ 'languages' ] [ 'c' ] [ 'gcc' ] [ 'target' ]
185
189
end
You can’t perform that action at this time.
0 commit comments