XR packaging for Fedora Atomic
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

reduce line length in openxr-generated

Shiloh Fen ca9c1b03 9ab74790

+15 -3
+15 -3
Formula/openxr-generated.rb
··· 32 32 33 33 # HACK: temporarily disable fixincludes for pthread.h, see https://github.com/orgs/Homebrew/discussions/6193 34 34 # Maybe building with LLVM clang would be a better idea? 35 - system "nu", "-c", "try {ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h | each {|file| mv $file.name $'($file.name).bak'}}" 35 + system "nu", "-c", "try { 36 + ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h 37 + | each {|file| mv $file.name $'($file.name).bak'}; 38 + print 'GCC Fixincludes disabled for `pthread.h`' 39 + } catch { 40 + print 'WARNING: Failed to disable pthread.h fixincludes from GCC.' 41 + }" 36 42 37 43 system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args 38 44 system "cmake", "--build", "build" 39 45 system "cmake", "--install", "build" 40 46 41 - # HACK: restore from above 42 - system "nu", "-c", "try {ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h.bak | each {|file| mv $file.name ($file.name | str substring 0..-5)}}" 47 + # HACK: re-enable pthread.h fixincludes 48 + system "nu", "-c", "try { 49 + ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h.bak 50 + | each {|file| mv $file.name ($file.name | str substring 0..-5)}; 51 + print 'GCC Fixincludes re-enabled for `pthread.h`' 52 + } catch { 53 + print 'WARNING: Failed to re-enable pthread.h fixincludes from GCC.' 54 + }" 43 55 end 44 56 45 57 test do