build: add support for OpenHarmony operating system
PR-URL: #58350 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>1 parent ef9ecbe commit 0b4056cFile tree Expand file treeCollapse file tree 23 files changedCopy full SHA for 0b4056c
+632
-59
lines changedFilter options
+632
-59
lines changed +1Lines changed: 1 addition & 0 deletions
@@ -122,6 +122,7 @@ platforms. This is true regardless of entries in the table below.
122
122
| SmartOS | x64 | >= 18 | Tier 2 | |
123
123
| AIX | ppc64be >=power8 | >= 7.2 TL04 | Tier 2 | |
124
124
| FreeBSD | x64 | >= 13.2 | Experimental | |
125
+
| OpenHarmony | arm64 | >= 5.0 | Experimental | |
125
126
126
127
<!--lint disable final-definition-->
127
128
+5-5Lines changed: 5 additions & 5 deletions Original file line number Diff line number Diff line change
@@ -122,7 +122,7 @@
122
122
['target_arch in "ppc64 s390x"', {
123
123
'v8_enable_backtrace': 1,
124
124
}],
125
-
['OS=="linux"', {
125
+
['OS=="linux" or OS=="openharmony"', {
126
126
'node_section_ordering_info%': ''
127
127
}],
128
128
['OS == "zos"', {
@@ -204,7 +204,7 @@
204
204
'LLVM_LTO': 'YES',
205
205
},
206
206
}],
207
-
['OS=="linux"', {
207
+
['OS=="linux" or OS=="openharmony"', {
208
208
'conditions': [
209
209
['node_section_ordering_info!=""', {
210
210
'cflags': [
@@ -232,7 +232,7 @@
232
232
# frames otherwise, even with --call-graph dwarf.
233
233
'cflags': [ '-fno-omit-frame-pointer' ],
234
234
}],
235
-
['OS=="linux"', {
235
+
['OS=="linux" or OS=="openharmony"', {
236
236
'conditions': [
237
237
['enable_pgo_generate=="true"', {
238
238
'cflags': ['<(pgo_generate)'],
@@ -503,11 +503,11 @@
503
503
'NOMINMAX',
504
504
],
505
505
}],
506
-
[ 'OS in "linux freebsd openbsd solaris aix os400"', {
506
+
[ 'OS in "linux freebsd openbsd solaris aix os400 openharmony"', {
507
507
'cflags': [ '-pthread' ],
508
508
'ldflags': [ '-pthread' ],
509
509
}],
510
-
[ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', {
510
+
[ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi openharmony"', {
511
511
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
512
512
'cflags_cc': [
513
513
'-fno-rtti',
+1-1Lines changed: 1 addition & 1 deletion Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
45
45
parser = argparse.ArgumentParser()
46
46
47
47
valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
48
-
'android', 'aix', 'cloudabi', 'os400', 'ios')
48
+
'android', 'aix', 'cloudabi', 'os400', 'ios', 'openharmony')
49
49
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el',
50
50
'ppc64', 'x64', 'x86', 'x86_64', 's390x', 'riscv64', 'loong64')
51
51
valid_arm_float_abi = ('soft', 'softfp', 'hard')
+4Lines changed: 4 additions & 0 deletions Original file line number Diff line number Diff line change
@@ -248,6 +248,10 @@
248
248
'-lnsl'
249
249
]
250
250
}
251
+
}],
252
+
[ 'OS=="openharmony"', {
253
+
'include_dirs': [ 'config/openharmony' ],
254
+
'sources': [ 'config/openharmony/ares_config.h' ],
251
255
}]
252
256
]
253
257
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4