@@ -46,7 +46,7 @@ pub fn build(b: *std.Build) !void {
4646 "-Wno-error=date-time" ,
4747 };
4848 const cxx_options = common_options ++ [_ ][]const u8 {
49- "-std=c++17 " ,
49+ "-std=c++20 " ,
5050 };
5151 const c_options = common_options ++ [_ ][]const u8 {};
5252 const mm_options = cxx_options ++ [_ ][]const u8 {};
@@ -500,7 +500,8 @@ pub fn build(b: *std.Build) !void {
500500 "-MP" ,
501501 "-Wall" ,
502502 "-Wextra" ,
503- "-ffast-math" ,
503+ // https://github.com/bkaradzic/bgfx/commit/b4dbc129f3b69b0d6a9093f2d579b883396a839f
504+ // "-ffast-math",
504505 "-fomit-frame-pointer" ,
505506 "-g" ,
506507 "-m64" ,
@@ -519,7 +520,8 @@ pub fn build(b: *std.Build) !void {
519520 "-MP" ,
520521 "-Wall" ,
521522 "-Wextra" ,
522- "-ffast-math" ,
523+ // https://github.com/bkaradzic/bgfx/commit/b4dbc129f3b69b0d6a9093f2d579b883396a839f
524+ // "-ffast-math",
523525 "-fomit-frame-pointer" ,
524526 "-g" ,
525527 "-m64" ,
@@ -580,6 +582,10 @@ fn bxInclude(b: *std.Build, step: *std.Build.Step.Compile, target: std.Build.Res
580582 step .root_module .addCMacro ("__STDC_FORMAT_MACROS" , "1" );
581583 step .root_module .addCMacro ("__STDC_CONSTANT_MACROS" , "1" );
582584
585+ // if (target.result.os.tag == .windows) {
586+ // step.root_module.addCMacro("BX_CONFIG_EXCEPTION_HANDLING_USE_WINDOWS_SEH", "0");
587+ // }
588+
583589 step .root_module .addCMacro ("BX_CONFIG_DEBUG" , if (optimize == .Debug ) "1" else "0" );
584590
585591 switch (target .result .os .tag ) {
@@ -820,6 +826,7 @@ const spirv_opt_files = .{
820826 spirv_opt_path ++ "source/opcode.cpp" ,
821827 spirv_opt_path ++ "source/operand.cpp" ,
822828 spirv_opt_path ++ "source/to_string.cpp" ,
829+ spirv_opt_path ++ "source/opt/graph.cpp" ,
823830 spirv_opt_path ++ "source/opt/aggressive_dead_code_elim_pass.cpp" ,
824831 spirv_opt_path ++ "source/opt/amd_ext_to_khr.cpp" ,
825832 spirv_opt_path ++ "source/opt/analyze_live_input_pass.cpp" ,
@@ -942,6 +949,7 @@ const spirv_opt_files = .{
942949 spirv_opt_path ++ "source/opt/struct_packing_pass.cpp" ,
943950 spirv_opt_path ++ "source/opt/split_combined_image_sampler_pass.cpp" ,
944951 spirv_opt_path ++ "source/opt/resolve_binding_conflicts_pass.cpp" ,
952+ spirv_opt_path ++ "source/opt/canonicalize_ids_pass.cpp" ,
945953 spirv_opt_path ++ "source/parsed_operand.cpp" ,
946954 spirv_opt_path ++ "source/print.cpp" ,
947955 spirv_opt_path ++ "source/reduce/change_operand_reduction_opportunity.cpp" ,
@@ -1035,4 +1043,5 @@ const spirv_opt_files = .{
10351043 spirv_opt_path ++ "source/val/validate_tensor_layout.cpp" ,
10361044 spirv_opt_path ++ "source/val/validate_tensor.cpp" ,
10371045 spirv_opt_path ++ "source/val/validate_invalid_type.cpp" ,
1046+ spirv_opt_path ++ "source/val/validate_graph.cpp" ,
10381047};
0 commit comments