Skip to content

Commit 513c923

Browse files
authored
Support gcc 14.2.0 on tizen 10.0 (#98)
1 parent 746c2a5 commit 513c923

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

build/config/BUILD.gn

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,21 @@ config("system_cxx") {
131131
assert(false, "Unknown target_cpu: " + target_cpu)
132132
}
133133

134-
include_dirs = [
135-
"${lib_path}/gcc/${gcc_target_triple}/9.2.0/include",
136-
"${lib_path}/gcc/${gcc_target_triple}/9.2.0/include/c++",
137-
"${lib_path}/gcc/${gcc_target_triple}/9.2.0/include/c++/${gcc_target_triple}",
138-
]
134+
include_dirs = []
135+
if (api_version == "10.0") {
136+
include_dirs += [
137+
"${lib_path}/gcc/${gcc_target_triple}/14.2.0/include",
138+
"${lib_path}/gcc/${gcc_target_triple}/14.2.0/include/c++",
139+
"${lib_path}/gcc/${gcc_target_triple}/14.2.0/include/c++/${gcc_target_triple}",
140+
]
141+
} else {
142+
include_dirs += [
143+
"${lib_path}/gcc/${gcc_target_triple}/9.2.0/include",
144+
"${lib_path}/gcc/${gcc_target_triple}/9.2.0/include/c++",
145+
"${lib_path}/gcc/${gcc_target_triple}/9.2.0/include/c++/${gcc_target_triple}",
146+
]
147+
}
148+
139149
libs = [ "stdc++" ]
140150
}
141151

0 commit comments

Comments
 (0)