| ... | ... | @@ -537,7 +537,11 @@ fn addCmakeCfgOptionsToExe( |
| 537 | 537 | exe.addObjectFile(fs.path.join(b.allocator, &[_][]const u8{ |
| 538 | 538 | cfg.cmake_binary_dir, |
| 539 | 539 | "zigcpp", |
| 540 | | b.fmt("{s}{s}{s}", .{ exe.target.libPrefix(), "zigcpp", exe.target.staticLibSuffix() }), |
| 540 | b.fmt("{s}{s}{s}", .{ |
| 541 | cfg.cmake_static_library_prefix, |
| 542 | "zigcpp", |
| 543 | cfg.cmake_static_library_suffix, |
| 544 | }), |
| 541 | 545 | }) catch unreachable); |
| 542 | 546 | assert(cfg.lld_include_dir.len != 0); |
| 543 | 547 | exe.addIncludePath(cfg.lld_include_dir); |
| ... | ... | @@ -669,6 +673,8 @@ const CMakeConfig = struct { |
| 669 | 673 | llvm_linkage: std.build.LibExeObjStep.Linkage, |
| 670 | 674 | cmake_binary_dir: []const u8, |
| 671 | 675 | cmake_prefix_path: []const u8, |
| 676 | cmake_static_library_prefix: []const u8, |
| 677 | cmake_static_library_suffix: []const u8, |
| 672 | 678 | cxx_compiler: []const u8, |
| 673 | 679 | lld_include_dir: []const u8, |
| 674 | 680 | lld_libraries: []const u8, |
| ... | ... | @@ -732,6 +738,8 @@ fn parseConfigH(b: *Builder, config_h_text: []const u8) ?CMakeConfig { |
| 732 | 738 | .llvm_linkage = undefined, |
| 733 | 739 | .cmake_binary_dir = undefined, |
| 734 | 740 | .cmake_prefix_path = undefined, |
| 741 | .cmake_static_library_prefix = undefined, |
| 742 | .cmake_static_library_suffix = undefined, |
| 735 | 743 | .cxx_compiler = undefined, |
| 736 | 744 | .lld_include_dir = undefined, |
| 737 | 745 | .lld_libraries = undefined, |
| ... | ... | @@ -751,6 +759,14 @@ fn parseConfigH(b: *Builder, config_h_text: []const u8) ?CMakeConfig { |
| 751 | 759 | .prefix = "#define ZIG_CMAKE_PREFIX_PATH ", |
| 752 | 760 | .field = "cmake_prefix_path", |
| 753 | 761 | }, |
| 762 | .{ |
| 763 | .prefix = "#define ZIG_CMAKE_STATIC_LIBRARY_PREFIX ", |
| 764 | .field = "cmake_static_library_prefix", |
| 765 | }, |
| 766 | .{ |
| 767 | .prefix = "#define ZIG_CMAKE_STATIC_LIBRARY_SUFFIX ", |
| 768 | .field = "cmake_static_library_suffix", |
| 769 | }, |
| 754 | 770 | .{ |
| 755 | 771 | .prefix = "#define ZIG_CXX_COMPILER ", |
| 756 | 772 | .field = "cxx_compiler", |