Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.12.1
-
None
-
Qt Creator 4.7.1 (same in 4.8-beta1), OSX 10.13
Description
I have such line in qbs for macos target:
cpp.linkerFlags: base.concat(project.profiling ? ["-pg"] : []).concat(project.sanitize ? ["-fsanitize=address"] : [])
with the profiling=false and sanitize=true I got next linking command:
/usr/bin/clang++ -Wl,-install_name,my.dylib,-headerpad_max_install_names,-arch,x86_64,-macosx_version_min,10.11,-fsanitize=address -dynamiclib -stdlib=libc++ ...
and linker says: 'unknown option: -fsanitize=address'
The problem in appending -fsanitize=address via comma. When I change the comma to the space and run in console linker is able to link.