[gn] fix build with openthread_enable_core_config_args is false (#12265)

This commit fixes building with gn when
openthread_enable_core_config_args is false, which causes
openthread_config_tcp_enable undefined.
This commit is contained in:
Yakun Xu
2026-01-08 11:19:40 -08:00
committed by GitHub
parent 093531d37c
commit 6a9d92545b
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -45,6 +45,7 @@ check_build()
main()
{
check_build --args="use_clang=true openthread_project_core_config_file=\"../examples/platforms/simulation/openthread-core-simulation-config.h\""
for thread_version in 1.4 1.1; do
for use_clang in true false; do
check_build --args="use_clang=$use_clang openthread_config_thread_version=\"$thread_version\""
+2 -2
View File
@@ -785,7 +785,7 @@ group("libopenthread_platform") {
static_library("libopenthread-ftd") {
sources = openthread_core_sources
if (openthread_config_tcp_enable) {
if (openthread_enable_core_config_args && openthread_config_tcp_enable) {
deps = [ "../../third_party/tcplp" ]
}
public_deps = [ ":libopenthread_platform" ]
@@ -794,7 +794,7 @@ static_library("libopenthread-ftd") {
static_library("libopenthread-mtd") {
sources = openthread_core_sources
if (openthread_config_tcp_enable) {
if (openthread_enable_core_config_args && openthread_config_tcp_enable) {
deps = [ "../../third_party/tcplp" ]
}
public_deps = [ ":libopenthread_platform" ]