mirror of
https://github.com/boostorg/build.git
synced 2026-01-19 04:02:14 +00:00
[qnx] Fixed build issues including a segfault (#482)
* fix: segfault when building with qcc compiler * fix: increase template depth for qnx compiler * fix: add import pch to qcc compiler
This commit is contained in:
@@ -13,6 +13,7 @@ import errors ;
|
||||
import feature ;
|
||||
import generators ;
|
||||
import os ;
|
||||
import pch ;
|
||||
import property ;
|
||||
import regex ;
|
||||
import set ;
|
||||
@@ -123,7 +124,7 @@ toolset.flags qcc.compile OPTIONS <link>shared : -shared ;
|
||||
toolset.flags qcc.compile.c++ TEMPLATE_DEPTH <c++-template-depth> ;
|
||||
|
||||
|
||||
rule compile.c++
|
||||
rule compile.c++ ( targets * : sources * : properties * )
|
||||
{
|
||||
# Here we want to raise the template-depth parameter value to something
|
||||
# higher than the default value of 17. Note that we could do this using the
|
||||
@@ -137,7 +138,7 @@ rule compile.c++
|
||||
local template-depth = [ on $(1) return $(TEMPLATE_DEPTH) ] ;
|
||||
if ! $(template-depth)
|
||||
{
|
||||
TEMPLATE_DEPTH on $(1) = 128 ;
|
||||
TEMPLATE_DEPTH on $(1) = 256 ;
|
||||
}
|
||||
|
||||
check-target-platform $(1) ;
|
||||
@@ -153,7 +154,7 @@ actions compile.c++
|
||||
"$(CONFIG_COMMAND)" $(QCC-TARGET-PLATFORM) -Wc,-ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
|
||||
}
|
||||
|
||||
rule compile.c
|
||||
rule compile.c ( targets * : sources * : properties * )
|
||||
{
|
||||
check-target-platform $(1) ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user