| ... | ... | @@ -81,6 +81,8 @@ message(STATUS "Configuring zig version ${RESOLVED_ZIG_VERSION}") |
| 81 | 81 | set(ZIG_NO_LIB off CACHE BOOL |
| 82 | 82 | "Disable copying lib/ files to install prefix during the build phase") |
| 83 | 83 | |
| 84 | # This used to do something and it may or may not do something in the future. |
| 85 | # Right now it does nothing. |
| 84 | 86 | set(ZIG_NO_LANGREF off CACHE BOOL |
| 85 | 87 | "Disable copying of langref to the install prefix during the build phase") |
| 86 | 88 | |
| ... | ... | @@ -828,11 +830,6 @@ if(ZIG_NO_LIB) |
| 828 | 830 | else() |
| 829 | 831 | set(ZIG_NO_LIB_ARG "") |
| 830 | 832 | endif() |
| 831 | | if(ZIG_NO_LANGREF) |
| 832 | | set(ZIG_NO_LANGREF_ARG "-Dno-langref") |
| 833 | | else() |
| 834 | | set(ZIG_NO_LANGREF_ARG "") |
| 835 | | endif() |
| 836 | 833 | if(ZIG_SINGLE_THREADED) |
| 837 | 834 | set(ZIG_SINGLE_THREADED_ARG "-Dsingle-threaded") |
| 838 | 835 | else() |
| ... | ... | @@ -850,6 +847,10 @@ else() |
| 850 | 847 | set(ZIG_PIE_ARG "") |
| 851 | 848 | endif() |
| 852 | 849 | |
| 850 | # -Dno-langref is currently hardcoded because building the langref takes too damn long |
| 851 | # -Dno-autodocs is currently hardcoded because the C backend generates a miscompilation |
| 852 | # that prevents it from working. |
| 853 | # To obtain these two forms of documentation, run zig build against stage3 rather than stage2. |
| 853 | 854 | set(ZIG_BUILD_ARGS |
| 854 | 855 | --zig-lib-dir "${CMAKE_SOURCE_DIR}/lib" |
| 855 | 856 | "-Dconfig_h=${ZIG_CONFIG_H_OUT}" |
| ... | ... | @@ -857,7 +858,8 @@ set(ZIG_BUILD_ARGS |
| 857 | 858 | ${ZIG_RELEASE_ARG} |
| 858 | 859 | ${ZIG_STATIC_ARG} |
| 859 | 860 | ${ZIG_NO_LIB_ARG} |
| 860 | | ${ZIG_NO_LANGREF_ARG} |
| 861 | "-Dno-langref" |
| 862 | "-Dno-autodocs" |
| 861 | 863 | ${ZIG_SINGLE_THREADED_ARG} |
| 862 | 864 | ${ZIG_PIE_ARG} |
| 863 | 865 | "-Dtarget=${ZIG_TARGET_TRIPLE}" |