We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f1c8f commit f26621cCopy full SHA for f26621c
1 file changed
ext/liquid_c/extconf.rb
@@ -1,5 +1,11 @@
1
# frozen_string_literal: true
2
require 'mkmf'
3
+
4
+# if system endianness == network endianness (big endian)
5
+if [1].pack('I') == [1].pack('N')
6
+ raise 'System incompatible with liquid-c, only little endian systems supported'
7
+end
8
9
$CFLAGS << ' -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers'
10
append_cflags('-fvisibility=hidden')
11
# In Ruby 2.6 and earlier, the Ruby headers did not have struct timespec defined
0 commit comments